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

[TD-2534]<fix>: fix crash on null pointer parser
This commit is contained in:
Shengliang Guan 2020-12-23 20:51:24 +08:00 committed by GitHub
commit afcb1af123
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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