From 8ed563cfbbe3921a7a07479a50de85fcf71cd41a Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 11 Aug 2004 16:09:54 +0000 Subject: r1723: Make sure we bail out on error in reading a OID. Andrew Bartlett (This used to be commit 6da7b65851aa4932aab56d1ab0f8fc67ccb62cdf) --- source4/libcli/util/asn1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/libcli/util') 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); -- cgit