aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-06-02 06:57:12 +0000
committerChristian Grothoff <christian@grothoff.org>2016-06-02 06:57:12 +0000
commit0c962c0cbc9c12602d032a1b9315bed023505ec6 (patch)
tree0c0b117be5effcf62ecf05a1dd18de0ba7fcf5f4
parent274b0c248e69e5b6bce8511e1d9a9445c1f6dfc8 (diff)
downloadlibmicrohttpd-0c962c0cbc9c12602d032a1b9315bed023505ec6.tar.gz
libmicrohttpd-0c962c0cbc9c12602d032a1b9315bed023505ec6.zip
-check obscure error on close()
-rw-r--r--src/microhttpd/daemon.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index a8646f5b..099ae8d4 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -3848,8 +3848,10 @@ MHD_start_daemon_va (unsigned int flags,
3848 "Failed to make control pipe non-blocking: %s\n", 3848 "Failed to make control pipe non-blocking: %s\n",
3849 MHD_strerror_ (errno)); 3849 MHD_strerror_ (errno));
3850#endif 3850#endif
3851 MHD_pipe_close_ (daemon->wpipe[0]); 3851 if (0 != MHD_pipe_close_ (daemon->wpipe[0]))
3852 MHD_pipe_close_ (daemon->wpipe[1]); 3852 MHD_PANIC ("close failed\n");
3853 if (0 != MHD_pipe_close_ (daemon->wpipe[1]))
3854 MHD_PANIC ("close failed\n");
3853 free (daemon); 3855 free (daemon);
3854 return NULL; 3856 return NULL;
3855 } 3857 }