Commit dea77acc authored by Nils Goroll's avatar Nils Goroll

avoid null pointer deref in panic code

parent cd5ddaa6
......@@ -533,7 +533,7 @@ pan_req(struct vsb *vsb, const struct req *req)
if (VALID_OBJ(req->htc, HTTP_CONN_MAGIC))
pan_htc(vsb, req->htc);
pan_http(vsb, "req", req->http);
if (req->resp->ws != NULL)
if (req->resp != NULL && req->resp->ws != NULL)
pan_http(vsb, "resp", req->resp);
if (req->vdc != NULL)
pan_vdp(vsb, req->vdc);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment