diff options
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r-- | src/microhttpd/connection.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index a85e5903..60bf9f65 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -541,10 +541,9 @@ void | |||
541 | MHD_connection_close_ (struct MHD_Connection *connection, | 541 | MHD_connection_close_ (struct MHD_Connection *connection, |
542 | enum MHD_RequestTerminationCode termination_code) | 542 | enum MHD_RequestTerminationCode termination_code) |
543 | { | 543 | { |
544 | struct MHD_Daemon *daemon; | 544 | struct MHD_Daemon *daemon = connection->daemon; |
545 | struct MHD_Response * const resp = connection->response; | 545 | struct MHD_Response *resp = connection->response; |
546 | 546 | ||
547 | daemon = connection->daemon; | ||
548 | MHD_connection_mark_closed_ (connection); | 547 | MHD_connection_mark_closed_ (connection); |
549 | if (NULL != resp) | 548 | if (NULL != resp) |
550 | { | 549 | { |