MINOR: check: Fix checks when using SRV records.

When started, a server may not yet have an associated protocol, so don't
bother trying to run the checks until it is there.
This commit is contained in:
Olivier Houchard 2017-08-04 18:39:01 +02:00 committed by Willy Tarreau
parent 8da5f98fbe
commit b68fda40d7

View File

@ -1557,7 +1557,7 @@ static int connect_conn_chk(struct task *t)
} }
ret = SF_ERR_INTERNAL; ret = SF_ERR_INTERNAL;
if (proto->connect) if (proto && proto->connect)
ret = proto->connect(conn, check->type, quickack ? 2 : 0); ret = proto->connect(conn, check->type, quickack ? 2 : 0);
if (s->check.send_proxy && !(check->state & CHK_ST_AGENT)) { if (s->check.send_proxy && !(check->state & CHK_ST_AGENT)) {
conn->send_proxy_ofs = 1; conn->send_proxy_ofs = 1;