[TD-2534]<fix>: fix crash on null pointer parser
This commit is contained in:
parent
a0981ed73e
commit
dbb4086236
|
@ -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