aboutsummaryrefslogtreecommitdiff
path: root/doc/examples
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-03-12 14:23:57 +0000
committerChristian Grothoff <christian@grothoff.org>2013-03-12 14:23:57 +0000
commit9c62ac37331eaf3f9467b377495f97b7068829f3 (patch)
tree30fb03883f5fe9e6508e951f65b1bf22a9c04900 /doc/examples
parentaa8465c7110cda7fb3cfc70813b2b2255b47762a (diff)
downloadlibmicrohttpd-9c62ac37331eaf3f9467b377495f97b7068829f3.tar.gz
libmicrohttpd-9c62ac37331eaf3f9467b377495f97b7068829f3.zip
-fix double-close
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/largepost.c3
1 files changed, 3 insertions, 0 deletions
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,
206 else 206 else
207 { 207 {
208 if (NULL != con_info->fp) 208 if (NULL != con_info->fp)
209 {
209 fclose (con_info->fp); 210 fclose (con_info->fp);
211 con_info->fp = NULL;
212 }
210 /* Now it is safe to open and inspect the file before calling send_page with a response */ 213 /* Now it is safe to open and inspect the file before calling send_page with a response */
211 return send_page (connection, con_info->answerstring, 214 return send_page (connection, con_info->answerstring,
212 con_info->answercode); 215 con_info->answercode);