From d8028df29d993c4918ac3a14f5e950665070aa68 Mon Sep 17 00:00:00 2001 From: Nicolas Cisco Date: Wed, 10 Jun 2015 01:49:37 -0300 Subject: [PATCH] Quick fix in order not to loose the reference of connection_param pointer --- mongoose.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongoose.c b/mongoose.c index fac57388..9dba5f0f 100644 --- a/mongoose.c +++ b/mongoose.c @@ -4967,7 +4967,7 @@ static void close_local_endpoint(struct connection *conn) { // (IP addresses & ports, server_param) must survive. Nullify the rest. 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->connection_param = c->callback_param = NULL; + c->callback_param = NULL; if (keep_alive) { on_recv_data(conn); // Can call us recursively if pipelining is used