未验证 提交 afcb1af1 编写于 作者: S Shengliang Guan 提交者: GitHub

Merge pull request #4678 from taosdata/fix/TD-2534

[TD-2534]<fix>: fix crash on null pointer parser
......@@ -136,7 +136,7 @@ void httpSendErrorResp(HttpContext *pContext, int32_t errNo) {
else
httpCode = 400;
if (pContext->parser->httpCode != 0) {
if (pContext->parser && pContext->parser->httpCode != 0) {
httpCode = pContext->parser->httpCode;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册