From: Willy Tarreau Date: Thu, 20 Sep 2018 09:25:12 +0000 (+0200) Subject: BUILD: checks: silence a null-deref build warning at -Wextra X-Git-Tag: v1.9-dev3~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=543abd4027bdadb4e28b83ca8aa9b39cdbd6545c;p=thirdparty%2Fhaproxy.git BUILD: checks: silence a null-deref build warning at -Wextra Simply don't use cs_conn() on a valid CS. --- diff --git a/src/checks.c b/src/checks.c index 6d19eef3f3..52c762b55a 100644 --- a/src/checks.c +++ b/src/checks.c @@ -1408,7 +1408,7 @@ static int wake_srv_chk(struct conn_stream *cs) if (check->type == PR_O2_TCPCHK_CHK) { ret = tcpcheck_main(check); cs = check->cs; - conn = cs_conn(cs); + conn = cs->conn; } else if (!(check->wait_list.wait_reason & SUB_CAN_SEND)) __event_srv_chk_w(cs);