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
|
||||
httpCode = 400;
|
||||
|
||||
if (pContext->parser->httpCode != 0) {
|
||||
if (pContext->parser && pContext->parser->httpCode != 0) {
|
||||
httpCode = pContext->parser->httpCode;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue