From 265fc74b656910dda559f410aa140c57de261cc9 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 23 Sep 2016 16:52:13 +0200 Subject: check return values, fix use of uninit memory on certain error handling paths --- src/exchange/taler-exchange-httpd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/exchange/taler-exchange-httpd.c') 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; } } -- cgit v1.2.3