mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-24 03:13:06 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -449,7 +449,7 @@ void dequeue_all_listeners(struct list *list)
|
|||
*/
|
||||
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);
|
||||
|
||||
LIST_DEL_LOCKED(&listener->wait_queue);
|
||||
|
|
|
|||
Loading…
Reference in a new issue