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

tridge at samba.org tridge at samba.org
Sat Jun 18 09:08:08 GMT 2005


Author: tridge
Date: 2005-06-18 09:08:08 +0000 (Sat, 18 Jun 2005)
New Revision: 7716

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

Log:
a single wrapped ldap blob can contain multiple ldap messages



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


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/ldap/ldap_client.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/ldap/ldap_client.c	2005-06-18 09:01:51 UTC (rev 7715)
+++ branches/SAMBA_4_0/source/libcli/ldap/ldap_client.c	2005-06-18 09:08:08 UTC (rev 7716)
@@ -213,12 +213,12 @@
 			return;
 		}
 
-		if (ldap_decode(&asn1, msg)) {
+		while (ldap_decode(&asn1, msg)) {
 			ldap_match_message(conn, msg);
-		} else {
-			talloc_free(msg);
+			msg = talloc(conn, struct ldap_message);
 		}
 		
+		talloc_free(msg);
 		asn1_free(&asn1);
 
 		if (conn->partial.length == len + 4) {



More information about the samba-cvs mailing list