Commit 84382cc1 authored by Lev Walkin's avatar Lev Walkin

fix infinite recursion in constraints

parent dfc9314a
...@@ -56,7 +56,7 @@ memb_varsets_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, ...@@ -56,7 +56,7 @@ memb_varsets_constraint_1(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->check_constraints(td, sptr, ctfailcb, app_key); return td->op->check_constraints(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)",
...@@ -405,7 +405,7 @@ memb_vset_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, ...@@ -405,7 +405,7 @@ memb_vset_constraint_1(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->check_constraints(td, sptr, ctfailcb, app_key); return td->op->check_constraints(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