From 9c62ac37331eaf3f9467b377495f97b7068829f3 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 12 Mar 2013 14:23:57 +0000 Subject: -fix double-close --- doc/examples/largepost.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc/examples') diff --git a/doc/examples/largepost.c b/doc/examples/largepost.c index 56960d50..5bef59c4 100644 --- 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); -- cgit v1.2.3