mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-24 06:22:44 +00:00
BUG/MEDIUM: fd: Don't fd_stop_recv() a fd we don't own.
In fd_takeover(), if we failed to grab the fd, when a double-width compare-and-swap is not implemented, do not call fd_stop_recv() on the fd, it is not ours and may be used by another thread.
This commit is contained in:
parent
f86a106f68
commit
8d7b517824
1
src/fd.c
1
src/fd.c
@ -362,6 +362,7 @@ end:
|
|||||||
* the fd is polled by the thread that used to own it, the new thread
|
* the fd is polled by the thread that used to own it, the new thread
|
||||||
* is supposed to call subscribe() later, to activate polling.
|
* is supposed to call subscribe() later, to activate polling.
|
||||||
*/
|
*/
|
||||||
|
if (ret != -1)
|
||||||
fd_stop_recv(fd);
|
fd_stop_recv(fd);
|
||||||
return ret;
|
return ret;
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user