diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-08-11 16:09:54 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:57:50 -0500 |
commit | 8ed563cfbbe3921a7a07479a50de85fcf71cd41a (patch) | |
tree | 8ce14ae4efc73ee28a25506cd0eada8250632fb4 | |
parent | fb4c7e8a16f956131da9459d74b770300ea3a047 (diff) | |
download | samba-8ed563cfbbe3921a7a07479a50de85fcf71cd41a.tar.gz samba-8ed563cfbbe3921a7a07479a50de85fcf71cd41a.tar.bz2 samba-8ed563cfbbe3921a7a07479a50de85fcf71cd41a.zip |
r1723: Make sure we bail out on error in reading a OID.
Andrew Bartlett
(This used to be commit 6da7b65851aa4932aab56d1ab0f8fc67ccb62cdf)
-rw-r--r-- | source4/libcli/util/asn1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/util/asn1.c b/source4/libcli/util/asn1.c index da51340774..dcafb261ee 100644 --- a/source4/libcli/util/asn1.c +++ b/source4/libcli/util/asn1.c @@ -354,7 +354,7 @@ BOOL asn1_read_OID(ASN1_DATA *data, char **OID) oid = talloc_asprintf(mem_ctx, "%u", b/40); oid = talloc_asprintf_append(mem_ctx, oid, " %u", b%40); - while (asn1_tag_remaining(data) > 0) { + while (!data->has_error && asn1_tag_remaining(data) > 0) { uint_t v = 0; do { asn1_read_uint8(data, &b); |