mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-18 19:56:59 +00:00
BUG/MAJOR: mux_pt: don't dereference a connstream after ->wake()
The wake() callback may destroy a connstream, so it must not be dereferenced in case wake() returns negative. No backport needed, this is 1.8-only.
This commit is contained in:
parent
7567c4002f
commit
ed339a375c
@ -51,8 +51,9 @@ static int mux_pt_wake(struct connection *conn)
|
||||
|
||||
ret = cs->data_cb->wake ? cs->data_cb->wake(cs) : 0;
|
||||
|
||||
cs_update_mux_polling(cs);
|
||||
return (ret);
|
||||
if (ret >= 0)
|
||||
cs_update_mux_polling(cs);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* callback used to update the mux's polling flags after changing a cs' status.
|
||||
|
Loading…
Reference in New Issue
Block a user