svn commit: samba r2851 - in branches/SAMBA_4_0/source/libcli/ldap: .

metze at samba.org metze at samba.org
Thu Oct 7 14:46:58 GMT 2004


Author: metze
Date: 2004-10-07 14:46:58 +0000 (Thu, 07 Oct 2004)
New Revision: 2851

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/libcli/ldap&rev=2851&nolog=1

Log:
don't destroy the gensec context it's used for sign and seal

check the result of ldap_receive()

metze

Modified:
   branches/SAMBA_4_0/source/libcli/ldap/ldap.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/ldap/ldap.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/ldap/ldap.c	2004-10-07 14:44:18 UTC (rev 2850)
+++ branches/SAMBA_4_0/source/libcli/ldap/ldap.c	2004-10-07 14:46:58 UTC (rev 2851)
@@ -1557,8 +1557,6 @@
 	}
 
 done:
-	if (conn->gensec)
-		gensec_end(&conn->gensec);
 	if (mem_ctx)
 		talloc_destroy(mem_ctx);
 
@@ -1696,6 +1694,9 @@
 	}
 
 	result = ldap_receive(conn, conn->searchid, endtime);
+	if (!result) {
+		return NULL;
+	}
 
 	if (result->type == LDAP_TAG_SearchResultEntry)
 		return result;



More information about the samba-cvs mailing list