commit | f0d058e8aba2db2034754f02ec70050d69354279 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Jan 25 12:03:42 2007 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Thu Jan 25 12:03:42 2007 +0100 |
tree | 0f9ea43d0e9317a3978c003cb517cd5b59551a36 | |
parent | ca28d1e1cb4fbdebf6d98f1fbac0d66abc5f0f15 [diff] [blame] |
[BUG] hdr_idx might be left uninitialized in some cases When a request is invalid during RQ_BEFORE AND the debug mode is active, the hdr_idx might be used uninitialized. Let's initialize it right after the accept() for now.
diff --git a/src/client.c b/src/client.c index c72f7e4..e4babba 100644 --- a/src/client.c +++ b/src/client.c
@@ -252,6 +252,7 @@ pool_free(session, s); return 0; } + hdr_idx_init(&hreq->hdr_idx); } if ((p->mode == PR_MODE_TCP || p->mode == PR_MODE_HTTP)