projects
/
haproxy-3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d015577
)
MINOR: checks: call conn_init() to properly initialize the connection.
author
Willy Tarreau
<w@1wt.eu>
Mon, 14 Oct 2013 15:29:15 +0000
(17:29 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Mon, 9 Dec 2013 14:40:23 +0000
(15:40 +0100)
This ensures we don't forget to set some fields such as obj_type.
src/checks.c
patch
|
blob
|
history
diff --git
a/src/checks.c
b/src/checks.c
index
51e2fe4
..
d781b4c
100644
(file)
--- a/
src/checks.c
+++ b/
src/checks.c
@@
-1540,10
+1540,9
@@
static struct task *process_chk(struct task *t)
}
/* prepare a new connection */
- conn->flags = CO_FL_NONE;
- conn->err_code = CO_ER_NONE;
- conn->target = &s->obj_type;
+ conn_init(conn);
conn_prepare(conn, &check_conn_cb, s->check_common.proto, s->check_common.xprt, check);
+ conn->target = &s->obj_type;
/* no client address */
clear_addr(&conn->addr.from);