diff --git a/src/plugins/http/src/httpSession.c b/src/plugins/http/src/httpSession.c index e80d6f26b72844246f4cd828650d63c70ccf9df3..cc60890e188cc16846f91245c23ab4206057a44b 100644 --- a/src/plugins/http/src/httpSession.c +++ b/src/plugins/http/src/httpSession.c @@ -46,6 +46,7 @@ void httpCreateSession(HttpContext *pContext, void *taos) { } HttpSession session; + memset(&session, 0, sizeof(HttpSession)); session.taos = taos; session.expire = (int)taosGetTimestampSec() + server->sessionExpire; session.access = 1; @@ -199,4 +200,4 @@ void httpProcessSessionExpire(void *handle, void *tmrId) { HttpServer *pServer = (HttpServer *)handle; httpRemoveExpireSessions(pServer); taosTmrReset(httpProcessSessionExpire, 60000, pServer, pServer->timerHandle, &pServer->expireTimer); -} \ No newline at end of file +}