[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-exchange] 02/04: do not potentially pass -1 to fcntl
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-exchange] 02/04: do not potentially pass -1 to fcntl() |
Date: |
Fri, 06 Oct 2017 21:31:16 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
commit 8f08e4634f0e2cb61d288ecc061d75e78c27fd30
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Oct 6 21:23:29 2017 +0200
do not potentially pass -1 to fcntl()
---
src/exchange/taler-exchange-httpd.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/exchange/taler-exchange-httpd.c
b/src/exchange/taler-exchange-httpd.c
index 0f87408..0dd3f96 100644
--- a/src/exchange/taler-exchange-httpd.c
+++ b/src/exchange/taler-exchange-httpd.c
@@ -1060,9 +1060,10 @@ main (int argc,
fh_admin = -1;
}
flags |= FD_CLOEXEC;
- if (0 != fcntl (fh_admin,
- F_SETFD,
- flags))
+ if ( (-1 != fh_admin) &&
+ (0 != fcntl (fh_admin,
+ F_SETFD,
+ flags)) )
GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR,
"fcntl");
}
--
To stop receiving notification emails like this one, please contact
address@hidden