From 9d618b4e91e07459fa2c70c389512965d22f3043 Mon Sep 17 00:00:00 2001 From: slguan Date: Mon, 5 Aug 2019 11:43:02 +0800 Subject: [PATCH] fix the crash while the num of http fds is zero --- src/modules/http/src/httpServer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/http/src/httpServer.c b/src/modules/http/src/httpServer.c index 97bfc6a118..863d5556e9 100644 --- a/src/modules/http/src/httpServer.c +++ b/src/modules/http/src/httpServer.c @@ -137,6 +137,8 @@ void httpCleanUpContext(HttpThread *pThread, HttpContext *pContext) { pContext->signature = 0; pContext->fd = -1; pContext->pThread = 0; + pContext->prev = 0; + pContext->next = 0; // avoid double free httpFreeJsonBuf(pContext);