summaryrefslogtreecommitdiff
path: root/lib/element.c
diff options
context:
space:
mode:
authorJean-Louis Thekekara <jean-louis.thekekara@openwide.fr>2014-03-25 13:41:37 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-03-28 14:44:07 +0100
commitd2ae7d7e3cd78652f5a08437d7e30adac575cad4 (patch)
treeaab16f1531b368c89c0064335547bd1441be642f /lib/element.c
parentf71df370925373a2e69aafa6b0b16916eb7ad1ef (diff)
downloadlibtasn1-d2ae7d7e3cd78652f5a08437d7e30adac575cad4.tar.gz
libtasn1-d2ae7d7e3cd78652f5a08437d7e30adac575cad4.tar.bz2
libtasn1-d2ae7d7e3cd78652f5a08437d7e30adac575cad4.zip
asn1_write_value: allow SET_OF elements deletion
SET_OF elements could just be deleted as SEQUENCE_OF ones. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/element.c')
-rw-r--r--lib/element.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/element.c b/lib/element.c
index 8604c24..3e26d84 100644
--- a/lib/element.c
+++ b/lib/element.c
@@ -290,7 +290,7 @@ asn1_write_value (asn1_node node_root, const char *name,
type = type_field (node->type);
- if ((type == ASN1_ETYPE_SEQUENCE_OF) && (value == NULL) && (len == 0))
+ if ((type == ASN1_ETYPE_SEQUENCE_OF || type == ASN1_ETYPE_SET_OF) && (value == NULL) && (len == 0))
{
p = node->down;
while ((type_field (p->type) == ASN1_ETYPE_TAG)