mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
r23701: when we create a new socket with socket_accept(), clear any flags that
were set in the old one. Otherwise SOCKET_FLAG_NOCLOSE causes a major
fd leak
(This used to be commit 4e31eda055
)
This commit is contained in:
parent
2a8f9213a4
commit
3381a5c3a4
@ -166,6 +166,7 @@ _PUBLIC_ NTSTATUS socket_accept(struct socket_context *sock, struct socket_conte
|
||||
|
||||
if (NT_STATUS_IS_OK(status)) {
|
||||
talloc_set_destructor(*new_sock, socket_destructor);
|
||||
(*new_sock)->flags = 0;
|
||||
}
|
||||
|
||||
return status;
|
||||
|
Loading…
Reference in New Issue
Block a user