mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-20 22:01:49 -04:00
BUG/MINOR: checks: Don't forget to release the connection on error case.
When switching the check code to a non-permanent connection, the new code forgot to free the connection if an error happened and was returned by connect_conn_chk(), leading to the check never be ran again.
This commit is contained in:
parent
31d4dbe825
commit
390485a68d
1 changed files with 4 additions and 0 deletions
|
|
@ -2118,6 +2118,10 @@ static struct task *process_chk_conn(struct task *t)
|
|||
}
|
||||
|
||||
/* here, we have seen a synchronous error, no fd was allocated */
|
||||
if (conn) {
|
||||
conn_free(conn);
|
||||
check->conn = conn = NULL;
|
||||
}
|
||||
|
||||
check->state &= ~CHK_ST_INPROGRESS;
|
||||
check_notify_failure(check);
|
||||
|
|
|
|||
Loading…
Reference in a new issue