mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +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:
@ -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)
|
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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user