提交 412db1ab 编写于 作者: S slguan

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

上级 6f3a448b
...@@ -214,6 +214,7 @@ bool httpParseHead(HttpContext* pContext) { ...@@ -214,6 +214,7 @@ bool httpParseHead(HttpContext* pContext) {
} }
} else if (strncasecmp(pParser->pLast + 15, "Taosd ", 6) == 0) { } else if (strncasecmp(pParser->pLast + 15, "Taosd ", 6) == 0) {
httpSendErrorResp(pContext, HTTP_INVALID_TAOSD_AUTH_TOKEN); httpSendErrorResp(pContext, HTTP_INVALID_TAOSD_AUTH_TOKEN);
return false;
} else { } else {
httpSendErrorResp(pContext, HTTP_INVALID_AUTH_TOKEN); httpSendErrorResp(pContext, HTTP_INVALID_AUTH_TOKEN);
return false; return false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册