svn commit: samba r7754 - in
branches/SAMBA_4_0/source/lib/socket_wrapper: .
tridge at samba.org
tridge at samba.org
Sun Jun 19 12:34:59 GMT 2005
Author: tridge
Date: 2005-06-19 12:34:59 +0000 (Sun, 19 Jun 2005)
New Revision: 7754
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7754
Log:
fixed the local port of accepted sockets in socket_wrapper. This fixes
the problem with the ldap tests in 'make test'
Modified:
branches/SAMBA_4_0/source/lib/socket_wrapper/socket_wrapper.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/socket_wrapper/socket_wrapper.c
===================================================================
--- branches/SAMBA_4_0/source/lib/socket_wrapper/socket_wrapper.c 2005-06-19 12:06:27 UTC (rev 7753)
+++ branches/SAMBA_4_0/source/lib/socket_wrapper/socket_wrapper.c 2005-06-19 12:34:59 UTC (rev 7754)
@@ -242,11 +242,10 @@
memset(child_si, 0, sizeof(*child_si));
child_si->fd = fd;
+ child_si->bound = 1;
- if (addr && addrlen) {
- child_si->myname_len = *addrlen;
- child_si->myname = sockaddr_dup(addr, *addrlen);
- }
+ child_si->myname_len = parent_si->myname_len;
+ child_si->myname = sockaddr_dup(parent_si->myname, parent_si->myname_len);
child_si->peername_len = *addrlen;
child_si->peername = sockaddr_dup(addr, *addrlen);
More information about the samba-cvs
mailing list