From b68fda40d7f27842b1911662efb9e97a457c8e6e Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Fri, 4 Aug 2017 18:39:01 +0200 Subject: [PATCH] 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. --- src/checks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/checks.c b/src/checks.c index 7938b8730..fc92a2438 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;