]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http: Regroup return statements of http_res_get_intercept_rule at the end
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 15 Nov 2018 14:40:29 +0000 (15:40 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 16 Nov 2018 15:05:51 +0000 (16:05 +0100)
commit6c243ebb9fa220f6aec693316068d158cc8377c1
tree6471edbfbf11bf05d32cae67299fe5886802b3d8
parentea827bdcbcf8c76782c8a978341f1edce8d28f52
MINOR: http: Regroup return statements of http_res_get_intercept_rule at the end

Instead of having multiple return statements spreaded here and there in middle
of the function, we just exit from the loop setting the right return code. It
let a chance to do some work before leaving the function. It is also less error
prone.
src/proto_http.c