summaryrefslogtreecommitdiff
path: root/libcli/ldap
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2016-01-04 10:24:01 +0100
committerJeremy Allison <jra@samba.org>2016-01-06 00:54:18 +0100
commit1282f6063d53b2b86c91cf80c9b0d6a2cdb4ad7b (patch)
tree3b27f241f1eeba131cebea26be66914a9209bff3 /libcli/ldap
parent2a5141a772f531ca113b9c2649ad79400c283749 (diff)
downloadsamba-1282f6063d53b2b86c91cf80c9b0d6a2cdb4ad7b.tar.gz
lib: Use asn1_has_nesting
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'libcli/ldap')
-rw-r--r--libcli/ldap/ldap_message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcli/ldap/ldap_message.c b/libcli/ldap/ldap_message.c
index 4518b30361d..76d2ee95c94 100644
--- a/libcli/ldap/ldap_message.c
+++ b/libcli/ldap/ldap_message.c
@@ -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;