Commit ca814576 authored by Rob Stradling's avatar Rob Stradling Committed by Lev Walkin

fix issue #379

parent c7abb8e9
...@@ -228,9 +228,12 @@ asn1c_emit_constraint_checking_code(arg_t *arg) { ...@@ -228,9 +228,12 @@ asn1c_emit_constraint_checking_code(arg_t *arg) {
INDENT(+1); INDENT(+1);
switch(etype) { switch(etype) {
case ASN_CONSTR_SEQUENCE_OF: case ASN_CONSTR_SEQUENCE_OF:
OUT("/* Perform validation of the inner elements */\n");
OUT("return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key);\n");
break;
case ASN_CONSTR_SET_OF: case ASN_CONSTR_SET_OF:
OUT("/* Perform validation of the inner elements */\n"); OUT("/* Perform validation of the inner elements */\n");
OUT("return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);\n"); OUT("return SET_OF_constraint(td, sptr, ctfailcb, app_key);\n");
break; break;
default: default:
OUT("/* Constraint check succeeded */\n"); OUT("/* Constraint check succeeded */\n");
......
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