mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-23 20:11:49 +00:00
Quick fix in order not to loose the reference of connection_param pointer
This commit is contained in:
1 parent
564683d25a
commit
d8028df29d
1 file changed
+1
-1
+1
-1
@@ -4967,7 +4967,7 @@ static void close_local_endpoint(struct connection *conn) {
|
|||||||
// (IP addresses & ports, server_param) must survive. Nullify the rest.
|
// (IP addresses & ports, server_param) must survive. Nullify the rest.
|
||||||
c->request_method = c->uri = c->http_version = c->query_string = NULL;
|
c->request_method = c->uri = c->http_version = c->query_string = NULL;
|
||||||
c->num_headers = c->status_code = c->is_websocket = c->content_len = 0;
|
c->num_headers = c->status_code = c->is_websocket = c->content_len = 0;
|
||||||
c->connection_param = c->callback_param = NULL;
|
c->callback_param = NULL;
|
||||||
|
|
||||||
if (keep_alive) {
|
if (keep_alive) {
|
||||||
on_recv_data(conn); // Can call us recursively if pipelining is used
|
on_recv_data(conn); // Can call us recursively if pipelining is used
|
||||||
|
|||||||
Reference in new issue
Block a user