From ef92f2e9c5817c476d5b8533c6047c0cc584e4cc Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Fri, 21 Feb 2020 14:29:14 +0000 Subject: [PATCH] Integrate cesanta/dev#1062 - Fix dereferencing in mg_http_free_proto_data_endpoints PUBLISHED_FROM=47fd1a4de07d2c53c994d29c88ac1d3a7f61c1a0 --- mongoose.c | 2 +- src/mg_http.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mongoose.c b/mongoose.c index eab88d93..d004a16d 100644 --- a/mongoose.c +++ b/mongoose.c @@ -5865,7 +5865,7 @@ static void mg_http_free_proto_data_endpoints(struct mg_http_endpoint **ep) { current = tmp; } - ep = NULL; + *ep = NULL; } static void mg_http_free_reverse_proxy_data(struct mg_reverse_proxy_data *rpd) { diff --git a/src/mg_http.c b/src/mg_http.c index 7f780247..70f13dc1 100644 --- a/src/mg_http.c +++ b/src/mg_http.c @@ -236,7 +236,7 @@ static void mg_http_free_proto_data_endpoints(struct mg_http_endpoint **ep) { current = tmp; } - ep = NULL; + *ep = NULL; } static void mg_http_free_reverse_proxy_data(struct mg_reverse_proxy_data *rpd) {