]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: http: fix a build warning introduced by a recent fix
authorWilly Tarreau <w@1wt.eu>
Sun, 13 Mar 2016 07:17:02 +0000 (08:17 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 13 Mar 2016 07:17:02 +0000 (08:17 +0100)
commit5c557d14d54a6d08c8c1624484cd7df2ed3c667e
tree851e06cc18149fdbd52d18beeafa7f5d92ee5dee
parente6e22e8e909dc10be3ebeb4d18179dd8970d119e
CLEANUP: http: fix a build warning introduced by a recent fix

Cyril reported that recent commit 320ec2a ("BUG/MEDIUM: chunks: always
reject negative-length chunks") introduced a build warning because gcc
cannot guess that we can't fall into the case where the auth_method
chunk is not initialized.

This patch addresses it, though for the long term it would be best
if chunk_initlen() would always initialize the result.

This fix must be backported to 1.6 and 1.5 where the aforementionned
fix was already backported.
src/proto_http.c