aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-09-13 14:07:25 +0000
committerChristian Grothoff <christian@grothoff.org>2011-09-13 14:07:25 +0000
commit24a401fd5bd6636312a8e8b40665e1ee77d66d0a (patch)
tree21586f503c9a60fe6730de4cad435a5d7ffa20cc
parentaee7bbd414f4c3da9da5fec8892e12ecfd1cb900 (diff)
downloadlibmicrohttpd-24a401fd5bd6636312a8e8b40665e1ee77d66d0a.tar.gz
libmicrohttpd-24a401fd5bd6636312a8e8b40665e1ee77d66d0a.zip
fix
-rw-r--r--src/daemon/connection.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/daemon/connection.c b/src/daemon/connection.c
index c02e87cd..3482aa33 100644
--- a/src/daemon/connection.c
+++ b/src/daemon/connection.c
@@ -311,15 +311,10 @@ MHD_connection_close (struct MHD_Connection *connection,
311 &connection->client_context, 311 &connection->client_context,
312 termination_code); 312 termination_code);
313 connection->client_aware = MHD_NO; 313 connection->client_aware = MHD_NO;
314 if (pos->response != NULL) 314 if (connection->response != NULL)
315 {
316 MHD_destroy_response (pos->response);
317 pos->response = NULL;
318 }
319 if (pos->response != NULL)
320 { 315 {
321 MHD_destroy_response (pos->response); 316 MHD_destroy_response (connection->response);
322 pos->response = NULL; 317 connection->response = NULL;
323 } 318 }
324} 319}
325 320