mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-09 00:27:08 +02:00
BUG/MEDIUM: listeners: Don't call fd_stop_recv() if fd_updt is NULL.
In do_unbind_listener, don't bother calling fd_stop_recv() if fd_updt is NULL. It means it has already been free'd, and it would crash.
This commit is contained in:
parent
92fce85d03
commit
a51885621d
@ -449,7 +449,7 @@ void dequeue_all_listeners(struct list *list)
|
|||||||
*/
|
*/
|
||||||
void do_unbind_listener(struct listener *listener, int do_close)
|
void do_unbind_listener(struct listener *listener, int do_close)
|
||||||
{
|
{
|
||||||
if (listener->state == LI_READY)
|
if (listener->state == LI_READY && fd_updt)
|
||||||
fd_stop_recv(listener->fd);
|
fd_stop_recv(listener->fd);
|
||||||
|
|
||||||
LIST_DEL_LOCKED(&listener->wait_queue);
|
LIST_DEL_LOCKED(&listener->wait_queue);
|
||||||
|
Loading…
Reference in New Issue
Block a user