projects
/
haproxy-2.1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
433c16f
)
BUILD: checks: silence a null-deref build warning at -Wextra
author
Willy Tarreau
<w@1wt.eu>
Thu, 20 Sep 2018 09:25:12 +0000
(11:25 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Thu, 20 Sep 2018 09:42:15 +0000
(11:42 +0200)
Simply don't use cs_conn() on a valid CS.
src/checks.c
patch
|
blob
|
history
diff --git
a/src/checks.c
b/src/checks.c
index
6d19eef
..
52c762b
100644
(file)
--- 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);