Commit d2d121f0 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't access struct http after teardown

Fixes #2263
parent 8abfe28c
......@@ -305,10 +305,10 @@ h2h_decode_bytes(struct h2_sess *h2, struct h2h_decode *d,
}
if (d->error == H2SE_ENHANCE_YOUR_CALM) {
http_Teardown(hp);
d->out = d->reset;
d->out_l = hp->ws->r - d->out;
d->out_u = 0;
http_Teardown(hp);
assert(d->out_u < d->out_l);
} else if (d->error)
break;
......
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