summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd.c
diff options
context:
space:
mode:
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;
}
}