BUILD: checks: silence a null-deref build warning at -Wextra

Simply don't use cs_conn() on a valid CS.
This commit is contained in:
Willy Tarreau 2018-09-20 11:25:12 +02:00
parent 433c16ffea
commit 543abd4027

View File

@ -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);