mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-07 15:52:10 -04:00
MINOR: checks: call conn_init() to properly initialize the connection.
This ensures we don't forget to set some fields such as obj_type.
This commit is contained in:
parent
d015577428
commit
4bdae8aa82
1 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue