libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 9c62ac37331eaf3f9467b377495f97b7068829f3
parent aa8465c7110cda7fb3cfc70813b2b2255b47762a
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 12 Mar 2013 14:23:57 +0000

-fix double-close

Diffstat:
Mdoc/examples/largepost.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/doc/examples/largepost.c b/doc/examples/largepost.c @@ -206,7 +206,10 @@ answer_to_connection (void *cls, struct MHD_Connection *connection, else { if (NULL != con_info->fp) + { fclose (con_info->fp); + con_info->fp = NULL; + } /* Now it is safe to open and inspect the file before calling send_page with a response */ return send_page (connection, con_info->answerstring, con_info->answercode);