From: Christopher Faulet Date: Tue, 28 Apr 2020 08:29:04 +0000 (+0200) Subject: CLEANUP: checks: Remove unused code when ldap server message is parsed X-Git-Tag: v2.2-dev7~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef3e69d4c4c1aa47a9df2e829312308bcccac2a7;p=thirdparty%2Fhaproxy.git CLEANUP: checks: Remove unused code when ldap server message is parsed In tcpcheck_ldap_expect_bindrsp(), wait_more_data label cannot be reached. Partly fixes issue #600. --- diff --git a/src/checks.c b/src/checks.c index 6f13200012..c79cc1fdd8 100644 --- a/src/checks.c +++ b/src/checks.c @@ -1353,10 +1353,6 @@ static enum tcpcheck_eval_ret tcpcheck_ldap_expect_bindrsp(struct check *check, tcpcheck_expect_onerror_message(msg, check, rule, 0, desc); set_server_check_status(check, status, (msg ? b_head(msg) : NULL)); goto out; - - wait_more_data: - ret = TCPCHK_EVAL_WAIT; - goto out; } /* Custom tcp-check expect function to parse and validate the SPOP hello agent