diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-09-04 16:43:28 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-09-04 16:43:28 +0000 |
commit | eea55aeb1d68159879e231ebfdb223bd21bdc525 (patch) | |
tree | 1c6f761128b0e4f80066c043525687e4f3c6c822 /src/microhttpd/connection.c | |
parent | 6daee7466367848d2304283c0c1ee8d8f653a5f0 (diff) | |
download | libmicrohttpd-eea55aeb1d68159879e231ebfdb223bd21bdc525.tar.gz libmicrohttpd-eea55aeb1d68159879e231ebfdb223bd21bdc525.zip |
-fix where we init daemon
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r-- | src/microhttpd/connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 4677fa7a..bd8af585 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -3178,6 +3178,7 @@ MHD_queue_response (struct MHD_Connection *connection, | |||
3178 | ( (MHD_CONNECTION_HEADERS_PROCESSED != connection->state) && | 3178 | ( (MHD_CONNECTION_HEADERS_PROCESSED != connection->state) && |
3179 | (MHD_CONNECTION_FOOTERS_RECEIVED != connection->state) ) ) | 3179 | (MHD_CONNECTION_FOOTERS_RECEIVED != connection->state) ) ) |
3180 | return MHD_NO; | 3180 | return MHD_NO; |
3181 | daemon = connection->daemon; | ||
3181 | if ( (MHD_HTTP_SWITCHING_PROTOCOLS != status_code) && | 3182 | if ( (MHD_HTTP_SWITCHING_PROTOCOLS != status_code) && |
3182 | (NULL != response->upgrade_handler) ) | 3183 | (NULL != response->upgrade_handler) ) |
3183 | { | 3184 | { |
@@ -3187,7 +3188,6 @@ MHD_queue_response (struct MHD_Connection *connection, | |||
3187 | #endif | 3188 | #endif |
3188 | return MHD_NO; | 3189 | return MHD_NO; |
3189 | } | 3190 | } |
3190 | daemon = connection->daemon; | ||
3191 | if ( (NULL != response->upgrade_handler) && | 3191 | if ( (NULL != response->upgrade_handler) && |
3192 | (0 == (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) && | 3192 | (0 == (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) && |
3193 | (0 == (daemon->options & MHD_USE_SUSPEND_RESUME)) ) | 3193 | (0 == (daemon->options & MHD_USE_SUSPEND_RESUME)) ) |