commit | 6bc5696f52542f40524d82199a2b6d0590a25581 | [log] [tgz] |
---|---|---|
author | Lev Walkin <vlm@lionet.info> | Fri Oct 20 04:19:37 2017 -0700 |
committer | Lev Walkin <vlm@lionet.info> | Fri Oct 20 04:19:37 2017 -0700 |
tree | a5ef9f08bb87bf1e592f23db234ae9adaf0ddd1c | |
parent | d14802fa0fc5b9750332cc5c839c23932362e3df [diff] [blame] |
fix consrtaint propagation for random_fill
diff --git a/skeletons/BOOLEAN.c b/skeletons/BOOLEAN.c index 3da5a6b..fd8b80c 100644 --- a/skeletons/BOOLEAN.c +++ b/skeletons/BOOLEAN.c
@@ -406,7 +406,8 @@ } } - if(!constraints) constraints = &td->encoding_constraints; + if(!constraints || !constraints->per_constraints) + constraints = &td->encoding_constraints; if(constraints->per_constraints) { const asn_per_constraint_t *pc = &constraints->per_constraints->value; if(pc->flags & APC_CONSTRAINED) {