From 297e8736dbc8fd13453b86e32ae8a7dd359251dc Mon Sep 17 00:00:00 2001 From: Kurt Roeckx Date: Sat, 26 Apr 2014 18:10:31 +0200 Subject: Make asn1_ordering_set_of() return error if it can't find data for one of the entries. --- lib/coding.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/coding.c') diff --git a/lib/coding.c b/lib/coding.c index e561700..6fb7c05 100644 --- a/lib/coding.c +++ b/lib/coding.c @@ -905,6 +905,11 @@ _asn1_ordering_set_of (unsigned char *der, int der_len, asn1_node node) } counter += len + len2; } + else + { + err = ASN1_DER_ERROR; + goto error; + } p_vet->end = counter; p = p->right; -- cgit v1.2.3