From: Olivier Houchard Date: Fri, 4 Aug 2017 16:39:01 +0000 (+0200) Subject: MINOR: check: Fix checks when using SRV records. X-Git-Tag: v1.8-dev3~191 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b68fda40d7f27842b1911662efb9e97a457c8e6e;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/checks.c b/src/checks.c index 7938b87302..fc92a24388 100644 --- a/src/checks.c +++ b/src/checks.c @@ -1557,7 +1557,7 @@ static int connect_conn_chk(struct task *t) } ret = SF_ERR_INTERNAL; - if (proto->connect) + if (proto && proto->connect) ret = proto->connect(conn, check->type, quickack ? 2 : 0); if (s->check.send_proxy && !(check->state & CHK_ST_AGENT)) { conn->send_proxy_ofs = 1;