projects
/
haproxy-2.1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92fce85
)
BUG/MEDIUM: listeners: Don't call fd_stop_recv() if fd_updt is NULL.
author
Olivier Houchard
<ohouchard@haproxy.com>
Fri, 8 Mar 2019 14:35:42 +0000
(15:35 +0100)
committer
Olivier Houchard
<cognet@ci0.org>
Fri, 8 Mar 2019 15:05:31 +0000
(16:05 +0100)
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.
src/listener.c
patch
|
blob
|
history
diff --git
a/src/listener.c
b/src/listener.c
index
037668f
..
8897c78
100644
(file)
--- a/
src/listener.c
+++ b/
src/listener.c
@@
-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);