]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: http: remove a useless null check
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Jan 2013 00:25:25 +0000 (01:25 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Jan 2013 15:19:18 +0000 (16:19 +0100)
commit4521ba689c506ce66e4843c887fbc555d2ea2006
treeec8cdd38d3c96bdb3e4bca69d295c10f935d894e
parent9e60cd84b7fef86bacf93212e329453d35549b01
CLEANUP: http: remove a useless null check

srv cannot be null in http_perform_server_redirect(), as it's taken
from the stream interface's target which is always valid for a
server-based redirect, and it was already dereferenced above, so in
practice, gcc already removes the test anyway.

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