]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http: Regroup return statements of http_req_get_intercept_rule at the end
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 15 Nov 2018 14:34:11 +0000 (15:34 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 16 Nov 2018 15:05:51 +0000 (16:05 +0100)
commitea827bdcbcf8c76782c8a978341f1edce8d28f52
treedf98a4cfac27b6d20aad493f624569b4c8ee4175
parent78337bbbaa27fb647a601032cf5f1a8bbe66193b
MINOR: http: Regroup return statements of http_req_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