]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: http: don't try to deinitialize http compression if it fails before init
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Jan 2013 14:58:42 +0000 (15:58 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Jan 2013 15:19:19 +0000 (16:19 +0100)
commit192e59fb0737cda156acfd652618c77cd00f07bd
treec9ac7aa6cd4f0e4e64957a85bfb8efa673b38446
parent8dc21faaf7906176341124e5e5852054fa2b712f
CLEANUP: http: don't try to deinitialize http compression if it fails before init

In select_compression_response_header(), some tests are rather confusing
as the "fail" label is used to deinitialize the compression context for
the session while it's branched only before initialization succeeds. The
test is always false here and the dereferencing of the comp_algo pointer
which might be null is also confusing. Remove that code which is not needed
anymore since commit ec3e3890 got rid of the latest issues.

Reported-by: Dinko Korunic <dkorunic@reflected.net>
src/proto_http.c