1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

libcli/ldap: let ldap_full_packet() use asn1_peek_tag_needed_size()

This allows us to read a full packet without read byte after byte
or possible read to much.

metze
This commit is contained in:
Stefan Metzmacher 2010-09-24 05:09:15 +02:00
parent 182a69c5be
commit 95b56aabcb

View File

@ -1609,5 +1609,5 @@ _PUBLIC_ NTSTATUS ldap_decode(struct asn1_data *data,
*/
NTSTATUS ldap_full_packet(void *private_data, DATA_BLOB blob, size_t *packet_size)
{
return asn1_full_tag(blob, ASN1_SEQUENCE(0), packet_size);
return asn1_peek_full_tag(blob, ASN1_SEQUENCE(0), packet_size);
}