[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r36836 - libmicrohttpd/src/examples
From: |
gnunet |
Subject: |
[GNUnet-SVN] r36836 - libmicrohttpd/src/examples |
Date: |
Mon, 18 Jan 2016 22:39:09 +0100 |
Author: grothoff
Date: 2016-01-18 22:39:09 +0100 (Mon, 18 Jan 2016)
New Revision: 36836
Modified:
libmicrohttpd/src/examples/https_fileserver_example.c
Log:
-fclose file, even if fileno failed...
Modified: libmicrohttpd/src/examples/https_fileserver_example.c
===================================================================
--- libmicrohttpd/src/examples/https_fileserver_example.c 2016-01-18
21:09:06 UTC (rev 36835)
+++ libmicrohttpd/src/examples/https_fileserver_example.c 2016-01-18
21:39:09 UTC (rev 36836)
@@ -143,7 +143,10 @@
{
fd = fileno (file);
if (-1 == fd)
- return MHD_NO; /* internal error */
+ {
+ (void) fclose (file);
+ return MHD_NO; /* internal error */
+ }
if ( (0 != fstat (fd, &buf)) ||
(! S_ISREG (buf.st_mode)) )
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r36836 - libmicrohttpd/src/examples,
gnunet <=