summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-09-23 16:52:13 +0200
committerChristian Grothoff <christian@grothoff.org>2016-09-23 16:52:13 +0200
commit265fc74b656910dda559f410aa140c57de261cc9 (patch)
tree03118e51436ec50e6322cb7742908f6569ed0c01 /src/exchange/taler-exchange-httpd.c
parentf43bac58947fd208bfb0cc5d6c6c1e4ba34d10ff (diff)
downloadexchange-265fc74b656910dda559f410aa140c57de261cc9.tar.gz
exchange-265fc74b656910dda559f410aa140c57de261cc9.tar.bz2
exchange-265fc74b656910dda559f410aa140c57de261cc9.zip
check return values, fix use of uninit memory on certain error handling paths
Diffstat (limited to 'src/exchange/taler-exchange-httpd.c')
-rw-r--r--src/exchange/taler-exchange-httpd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c
index 75a765720..230c31a64 100644
--- a/src/exchange/taler-exchange-httpd.c
+++ b/src/exchange/taler-exchange-httpd.c
@@ -1042,7 +1042,8 @@ main (int argc,
unixpath_admin_mode);
if (-1 == fh_admin)
{
- GNUNET_break (0 == close (fh));
+ if (-1 != fh)
+ GNUNET_break (0 == close (fh));
return 1;
}
}