aboutsummaryrefslogtreecommitdiffstats
path: root/libasn1fix
diff options
context:
space:
mode:
authorBi-Ruei, Chiu <biruei.chiu@gmail.com>2017-10-19 20:49:17 +0800
committerLev Walkin <vlm@lionet.info>2017-10-20 17:15:57 -0700
commite460c3b7a33f3edb5af9d77af71ba1f0dbc1c6c1 (patch)
tree377cbc74dca42160b294640a85e03ca5d59aea60 /libasn1fix
parent156b0feb5c915e1ca00c38e19d3beeeb9fea692c (diff)
Fix error during 'make check'
Diffstat (limited to 'libasn1fix')
-rw-r--r--libasn1fix/asn1fix_param.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libasn1fix/asn1fix_param.c b/libasn1fix/asn1fix_param.c
index 1419c053..77daba13 100644
--- a/libasn1fix/asn1fix_param.c
+++ b/libasn1fix/asn1fix_param.c
@@ -112,7 +112,7 @@ resolve_expr(asn1p_expr_t *expr_to_resolve, void *resolver_arg) {
expr_to_resolve->reference);
if(!expr) return NULL;
} else if(expr_to_resolve->meta_type == AMT_VALUE) {
- assert(expr_to_resolve->value);
+ if(!expr_to_resolve->value) return NULL;
expr = find_target_specialization_bystr(rarg,
expr_to_resolve->Identifier);
if(!expr) return NULL;
@@ -155,7 +155,7 @@ static asn1p_expr_t *
find_target_specialization_byvalueset(resolver_arg_t *rarg, asn1p_constraint_t *ct) {
asn1p_ref_t *ref;
- assert(ct->type == ACT_EL_TYPE);
+ if (ct->type != ACT_EL_TYPE) return NULL;
ref = ct->containedSubtype->value.v_type->reference;