diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-04-20 17:02:48 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-04-20 17:02:48 +0200 |
commit | 22787a738c69322cc4b1b6fbabd7b4ee7db61857 (patch) | |
tree | a9559a505002f3a692ea01b2e45022dccd000f66 /lib | |
parent | e965f59066f339d081954c676b2d2f1e6b580dda (diff) | |
download | libtasn1-22787a738c69322cc4b1b6fbabd7b4ee7db61857.tar.gz |
_asn1_append_sequence_set: fail if _asn1_copy_structure3 fails
Diffstat (limited to 'lib')
-rw-r--r-- | lib/element.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/element.c b/lib/element.c index dceb8ba..b7a0905 100644 --- a/lib/element.c +++ b/lib/element.c @@ -152,7 +152,10 @@ _asn1_append_sequence_set (asn1_node node, struct node_tail_cache_st *pcache) while ((type_field (p->type) == ASN1_ETYPE_TAG) || (type_field (p->type) == ASN1_ETYPE_SIZE)) p = p->right; + p2 = _asn1_copy_structure3 (p); + if (p2 == NULL) + return ASN1_GENERIC_ERROR; if (pcache == NULL || pcache->tail == NULL || pcache->head != node) { |