Commit 94fe1956 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

If we cannot allocate an object in cnt_error() just close and go

to cnt_done(), there is nothing we can do.

For some inderterminate value of "fixes" this...

Fixes	#924
parent 8e8d4e8a
......@@ -415,7 +415,12 @@ cnt_error(struct sess *sp)
EXP_Clr(&w->exp);
sp->obj = STV_NewObject(sp, NULL, 1024, &w->exp,
params->http_max_hdr);
XXXAN(sp->obj);
if (sp->obj == NULL) {
sp->doclose = "Out of objects";
sp->step = STP_DONE;
return(0);
}
AN(sp->obj);
sp->obj->xid = sp->xid;
sp->obj->entered = sp->t_req;
} else {
......
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