diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-09-24 05:09:15 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-09-26 06:45:40 +0200 |
commit | 95b56aabcbfe2754a34eac627a6bc7226cbd3f17 (patch) | |
tree | 0d687f2f300dc603c345daabcc339f1695f910db | |
parent | 182a69c5be7706fbb542694c7be51d499b61c98d (diff) | |
download | samba-95b56aabcbfe2754a34eac627a6bc7226cbd3f17.tar.gz samba-95b56aabcbfe2754a34eac627a6bc7226cbd3f17.tar.bz2 samba-95b56aabcbfe2754a34eac627a6bc7226cbd3f17.zip |
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
-rw-r--r-- | libcli/ldap/ldap_message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcli/ldap/ldap_message.c b/libcli/ldap/ldap_message.c index 1e4421442c..394151879c 100644 --- a/libcli/ldap/ldap_message.c +++ b/libcli/ldap/ldap_message.c @@ -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); } |