svn commit: samba r18162 - in branches: SAMBA_3_0/source/libads SAMBA_3_0_23/source/libads

gd at samba.org gd at samba.org
Wed Sep 6 11:53:13 GMT 2006


Author: gd
Date: 2006-09-06 11:53:13 +0000 (Wed, 06 Sep 2006)
New Revision: 18162

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18162

Log:
Close socket when the CLDAP request has failed.

Guenther

Modified:
   branches/SAMBA_3_0/source/libads/cldap.c
   branches/SAMBA_3_0_23/source/libads/cldap.c


Changeset:
Modified: branches/SAMBA_3_0/source/libads/cldap.c
===================================================================
--- branches/SAMBA_3_0/source/libads/cldap.c	2006-09-06 11:48:24 UTC (rev 18161)
+++ branches/SAMBA_3_0/source/libads/cldap.c	2006-09-06 11:53:13 UTC (rev 18162)
@@ -297,6 +297,7 @@
 
 	ret = send_cldap_netlogon(sock, realm, global_myname(), 6);
 	if (ret != 0) {
+		close(sock);
 		return False;
 	}
 	ret = recv_cldap_netlogon(sock, reply);

Modified: branches/SAMBA_3_0_23/source/libads/cldap.c
===================================================================
--- branches/SAMBA_3_0_23/source/libads/cldap.c	2006-09-06 11:48:24 UTC (rev 18161)
+++ branches/SAMBA_3_0_23/source/libads/cldap.c	2006-09-06 11:53:13 UTC (rev 18162)
@@ -295,6 +295,7 @@
 
 	ret = send_cldap_netlogon(sock, realm, global_myname(), 6);
 	if (ret != 0) {
+		close(sock);
 		return False;
 	}
 	ret = recv_cldap_netlogon(sock, reply);



More information about the samba-cvs mailing list