Commit 46b394dd authored by Lev Walkin's avatar Lev Walkin

Follow-up to #379

parent ca814576
Full list of copyright holders: Full list of copyright holders:
Rob Stradling <rob@sectigo.com>
Bartosz Marcinkiewicz <bma@megawatt.com.pl> Bartosz Marcinkiewicz <bma@megawatt.com.pl>
Bent Nicolaisen <BN@JAI.com> Bent Nicolaisen <BN@JAI.com>
Bi-Ruei, Chiu <biruei.chiu@gmail.com> Bi-Ruei, Chiu <biruei.chiu@gmail.com>
......
...@@ -291,7 +291,7 @@ Packet_List_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, ...@@ -291,7 +291,7 @@ Packet_List_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
if((size >= 1 && size <= 256)) { if((size >= 1 && size <= 256)) {
/* Perform validation of the inner elements */ /* Perform validation of the inner elements */
return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key);
} else { } else {
ASN__CTFAIL(app_key, td, sptr, ASN__CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)", "%s: constraint failed (%s:%d)",
...@@ -376,7 +376,7 @@ UpperLayer_List_41P0_constraint(const asn_TYPE_descriptor_t *td, const void *spt ...@@ -376,7 +376,7 @@ UpperLayer_List_41P0_constraint(const asn_TYPE_descriptor_t *td, const void *spt
if((size >= 1 && size <= 256)) { if((size >= 1 && size <= 256)) {
/* Perform validation of the inner elements */ /* Perform validation of the inner elements */
return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key);
} else { } else {
ASN__CTFAIL(app_key, td, sptr, ASN__CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)", "%s: constraint failed (%s:%d)",
......
...@@ -56,7 +56,7 @@ memb_varsets_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, ...@@ -56,7 +56,7 @@ memb_varsets_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
if((size >= 1)) { if((size >= 1)) {
/* Perform validation of the inner elements */ /* Perform validation of the inner elements */
return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key);
} else { } else {
ASN__CTFAIL(app_key, td, sptr, ASN__CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)", "%s: constraint failed (%s:%d)",
...@@ -383,7 +383,7 @@ memb_vset_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, ...@@ -383,7 +383,7 @@ memb_vset_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
if((size >= 1)) { if((size >= 1)) {
/* Perform validation of the inner elements */ /* Perform validation of the inner elements */
return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); return SET_OF_constraint(td, sptr, ctfailcb, app_key);
} else { } else {
ASN__CTFAIL(app_key, td, sptr, ASN__CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)", "%s: constraint failed (%s:%d)",
......
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