Merge pull request #4678 from taosdata/fix/TD-2534
[TD-2534]<fix>: fix crash on null pointer parser
This commit is contained in:
commit
afcb1af123
|
@ -136,7 +136,7 @@ void httpSendErrorResp(HttpContext *pContext, int32_t errNo) {
|
||||||
else
|
else
|
||||||
httpCode = 400;
|
httpCode = 400;
|
||||||
|
|
||||||
if (pContext->parser->httpCode != 0) {
|
if (pContext->parser && pContext->parser->httpCode != 0) {
|
||||||
httpCode = pContext->parser->httpCode;
|
httpCode = pContext->parser->httpCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue