diff options
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r-- | src/microhttpd/connection.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 463fc88e..9068ee08 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -2427,6 +2427,7 @@ transmit_error_response_len (struct MHD_Connection *connection, | |||
2427 | connection->version = NULL; | 2427 | connection->version = NULL; |
2428 | connection->method = NULL; | 2428 | connection->method = NULL; |
2429 | connection->url = NULL; | 2429 | connection->url = NULL; |
2430 | connection->url_len = 0; | ||
2430 | connection->last = NULL; | 2431 | connection->last = NULL; |
2431 | connection->colon = NULL; | 2432 | connection->colon = NULL; |
2432 | connection->headers_received = NULL; | 2433 | connection->headers_received = NULL; |
@@ -3366,9 +3367,15 @@ parse_initial_message_line (struct MHD_Connection *connection, | |||
3366 | 3367 | ||
3367 | /* unescape URI *after* searching for arguments and log callback */ | 3368 | /* unescape URI *after* searching for arguments and log callback */ |
3368 | if (NULL != uri) | 3369 | if (NULL != uri) |
3369 | daemon->unescape_callback (daemon->unescape_callback_cls, | 3370 | { |
3370 | connection, | 3371 | connection->url_len = |
3371 | uri); | 3372 | daemon->unescape_callback (daemon->unescape_callback_cls, |
3373 | connection, | ||
3374 | uri); | ||
3375 | } | ||
3376 | else | ||
3377 | connection->url_len = 0; | ||
3378 | |||
3372 | connection->url = curi; | 3379 | connection->url = curi; |
3373 | return MHD_YES; | 3380 | return MHD_YES; |
3374 | } | 3381 | } |
@@ -4755,6 +4762,7 @@ connection_reset (struct MHD_Connection *connection, | |||
4755 | c->method = NULL; | 4762 | c->method = NULL; |
4756 | c->http_mthd = MHD_HTTP_MTHD_NO_METHOD; | 4763 | c->http_mthd = MHD_HTTP_MTHD_NO_METHOD; |
4757 | c->url = NULL; | 4764 | c->url = NULL; |
4765 | c->url_len = 0; | ||
4758 | memset (&c->rp_props, 0, sizeof(c->rp_props)); | 4766 | memset (&c->rp_props, 0, sizeof(c->rp_props)); |
4759 | c->write_buffer = NULL; | 4767 | c->write_buffer = NULL; |
4760 | c->write_buffer_size = 0; | 4768 | c->write_buffer_size = 0; |