diff options
Diffstat (limited to 'src/daemon/connection.c')
-rw-r--r-- | src/daemon/connection.c | 11 |
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 | ||