svn commit: samba r23701 - in branches/SAMBA_4_0/source/lib/socket:
.
tridge at samba.org
tridge at samba.org
Wed Jul 4 07:43:27 GMT 2007
Author: tridge
Date: 2007-07-04 07:43:26 +0000 (Wed, 04 Jul 2007)
New Revision: 23701
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23701
Log:
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
Modified:
branches/SAMBA_4_0/source/lib/socket/socket.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/socket/socket.c
===================================================================
--- branches/SAMBA_4_0/source/lib/socket/socket.c 2007-07-04 05:16:19 UTC (rev 23700)
+++ branches/SAMBA_4_0/source/lib/socket/socket.c 2007-07-04 07:43:26 UTC (rev 23701)
@@ -166,6 +166,7 @@
if (NT_STATUS_IS_OK(status)) {
talloc_set_destructor(*new_sock, socket_destructor);
+ (*new_sock)->flags = 0;
}
return status;
More information about the samba-cvs
mailing list