Commit 0e32f166 authored by Nils Goroll's avatar Nils Goroll

Fix WS_Reserve() error handling

See #2967 for discussion
parent 458306fa
......@@ -226,8 +226,10 @@ h2_build_headers(struct vsb *resp, struct req *req)
ssize_t sz, sz1;
l = WS_Reserve(req->ws, 0);
if (l < 10)
if (l < 10) {
WS_Release(req->ws, 0);
return (-1);
}
AN(VSB_new(resp, req->ws->f, l, VSB_FIXEDLEN));
......
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