From 412db1ab0a4d1bd86f95f3004142cfeef1dccb6b Mon Sep 17 00:00:00 2001 From: slguan Date: Sat, 20 Jul 2019 14:49:39 +0800 Subject: [PATCH] Fix the issure #126, Taosd may crash while an invalid token input --- src/modules/http/src/httpHandle.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/http/src/httpHandle.c b/src/modules/http/src/httpHandle.c index 04cc27fe64..c73aff8bb2 100644 --- a/src/modules/http/src/httpHandle.c +++ b/src/modules/http/src/httpHandle.c @@ -214,6 +214,7 @@ bool httpParseHead(HttpContext* pContext) { } } else if (strncasecmp(pParser->pLast + 15, "Taosd ", 6) == 0) { httpSendErrorResp(pContext, HTTP_INVALID_TAOSD_AUTH_TOKEN); + return false; } else { httpSendErrorResp(pContext, HTTP_INVALID_AUTH_TOKEN); return false; -- GitLab