summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-06-18 09:08:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:25 -0500
commit1e99722d020f38eaad7fe2010f43c23586a19410 (patch)
treee0816cae7d46bb4825faa5c92d5336fab56fbd7b /source4/libcli
parent90cf33953dcfab988162f9ee53cdc0eb6ff87c28 (diff)
downloadsamba-1e99722d020f38eaad7fe2010f43c23586a19410.tar.gz
samba-1e99722d020f38eaad7fe2010f43c23586a19410.tar.bz2
samba-1e99722d020f38eaad7fe2010f43c23586a19410.zip
r7716: a single wrapped ldap blob can contain multiple ldap messages
(This used to be commit de5f265b6c586335965a6de844c203206261cc3b)
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/ldap/ldap_client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/libcli/ldap/ldap_client.c b/source4/libcli/ldap/ldap_client.c
index e392002a19..bc70cd56aa 100644
--- a/source4/libcli/ldap/ldap_client.c
+++ b/source4/libcli/ldap/ldap_client.c
@@ -213,12 +213,12 @@ static void ldap_try_decode_wrapped(struct ldap_connection *conn)
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) {