Commit c35ebd33 authored by Raphael Riebl's avatar Raphael Riebl

keep SizeConstraints extensible

Fix #290, #383, #407 where APC_EXTENSIBLE is lost for SEQUENCE SIZE(, ...) OF
parent 00fa516f
......@@ -238,6 +238,9 @@ _remove_extensions(arg_t *arg, asn1p_constraint_t *ct, int forgive_last) {
if(!ct) return;
/* Keep extensible SizeConstraint */
if(ct->type == ACT_CT_SIZE && forgive_last) return;
for(i = 0; i < ct->el_count; i++) {
if(ct->elements[i]->type == ACT_EL_EXT)
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment