Commit f535d862 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Tollef Fog Heen

And a third case of sizeof missing dereference spotted by LLVM

parent 879ca02c
...@@ -911,9 +911,11 @@ http_ClrHeader(struct http *to) ...@@ -911,9 +911,11 @@ http_ClrHeader(struct http *to)
{ {
CHECK_OBJ_NOTNULL(to, HTTP_MAGIC); CHECK_OBJ_NOTNULL(to, HTTP_MAGIC);
/* XXX: don't to->f = to->v; it would kill pipelining */
to->nhd = HTTP_HDR_FIRST; to->nhd = HTTP_HDR_FIRST;
memset(to->hd, 0, sizeof to->hd); to->status = 0;
to->protover = 0;
to->conds = 0;
memset(to->hd, 0, sizeof *to->hd * to->shd);
} }
/*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/
......
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