mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
lib: Use asn1_has_nesting
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
2a5141a772
commit
1282f6063d
@ -1625,7 +1625,7 @@ _PUBLIC_ NTSTATUS ldap_decode(struct asn1_data *data,
|
||||
}
|
||||
|
||||
if (!asn1_end_tag(data)) goto prot_err;
|
||||
if (asn1_has_error(data) || (data->nesting != NULL)) {
|
||||
if (asn1_has_error(data) || asn1_has_nesting(data)) {
|
||||
return NT_STATUS_LDAP(LDAP_PROTOCOL_ERROR);
|
||||
}
|
||||
return NT_STATUS_OK;
|
||||
|
Loading…
x
Reference in New Issue
Block a user