Fix the issure #126, Taosd may crash while an invalid token input

This commit is contained in:
slguan 2019-07-20 14:49:39 +08:00
parent 6f3a448b22
commit 412db1ab0a
1 changed files with 1 additions and 0 deletions

View File

@ -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;