提交 7219b47f 编写于 作者: M Minglei Jin

[TD-2962]<fix>: fix pContext NULL crash

上级 c2215eb2
......@@ -239,6 +239,10 @@ JsonBuf *httpMallocJsonBuf(HttpContext *pContext) {
pContext->jsonBuf = (JsonBuf *)malloc(sizeof(JsonBuf));
}
if (!pContext->jsonBuf->pContext) {
pContext->jsonBuf->pContext = pContext;
}
return pContext->jsonBuf;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册