]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: checks: Remove unused code when ldap server message is parsed
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 28 Apr 2020 08:29:04 +0000 (10:29 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 28 Apr 2020 08:29:14 +0000 (10:29 +0200)
In tcpcheck_ldap_expect_bindrsp(), wait_more_data label cannot be reached.

Partly fixes issue #600.

src/checks.c

index 6f132000125bdc944c6f4ca2b14dafe0dec73eab..c79cc1fdd87f9eefeb6bbdaf52b9d10cd5bd2355 100644 (file)
@@ -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