[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r36838 - libmicrohttpd/src/examples
From: |
gnunet |
Subject: |
[GNUnet-SVN] r36838 - libmicrohttpd/src/examples |
Date: |
Mon, 18 Jan 2016 22:42:33 +0100 |
Author: grothoff
Date: 2016-01-18 22:42:33 +0100 (Mon, 18 Jan 2016)
New Revision: 36838
Modified:
libmicrohttpd/src/examples/fileserver_example_external_select.c
Log:
-fclose file, even if fileno failed...
Modified: libmicrohttpd/src/examples/fileserver_example_external_select.c
===================================================================
--- libmicrohttpd/src/examples/fileserver_example_external_select.c
2016-01-18 21:41:49 UTC (rev 36837)
+++ libmicrohttpd/src/examples/fileserver_example_external_select.c
2016-01-18 21:42:33 UTC (rev 36838)
@@ -78,7 +78,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] r36838 - libmicrohttpd/src/examples,
gnunet <=