mirror of
https://github.com/samba-team/samba.git
synced 2025-10-25 19:33:18 +03:00
r7716: a single wrapped ldap blob can contain multiple ldap messages
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
dc419fc899
commit
de5f265b6c
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user