libmicrohttpd

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

commit 24a401fd5bd6636312a8e8b40665e1ee77d66d0a
parent aee7bbd414f4c3da9da5fec8892e12ecfd1cb900
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 13 Sep 2011 14:07:25 +0000

fix

Diffstat:
Msrc/daemon/connection.c | 11+++--------
1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/src/daemon/connection.c b/src/daemon/connection.c @@ -311,15 +311,10 @@ MHD_connection_close (struct MHD_Connection *connection, &connection->client_context, termination_code); connection->client_aware = MHD_NO; - if (pos->response != NULL) - { - MHD_destroy_response (pos->response); - pos->response = NULL; - } - if (pos->response != NULL) + if (connection->response != NULL) { - MHD_destroy_response (pos->response); - pos->response = NULL; + MHD_destroy_response (connection->response); + connection->response = NULL; } }