diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2014-04-26 18:10:31 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-04-27 18:28:28 +0200 |
commit | 297e8736dbc8fd13453b86e32ae8a7dd359251dc (patch) | |
tree | 8d7fd3c10bff866c70666f8dccb58301c1876872 /lib | |
parent | 9765641067c5147fc50f67db8fce2992a3cc1037 (diff) | |
download | libtasn1-297e8736dbc8fd13453b86e32ae8a7dd359251dc.tar.gz libtasn1-297e8736dbc8fd13453b86e32ae8a7dd359251dc.tar.bz2 libtasn1-297e8736dbc8fd13453b86e32ae8a7dd359251dc.zip |
Make asn1_ordering_set_of() return error if it can't find data for one of the entries.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/coding.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |