From 7624db4efd91aee964b54ad67be38dd901a66040 Mon Sep 17 00:00:00 2001 From: Özgür Kesim Date: Wed, 2 Mar 2022 10:59:42 +0100 Subject: -refactor TALER_AgeMask.mask -> TALER_AgeMask.bits also: fix off-by-one in TALER_age_restriction_commit --- src/testing/testing_api_helpers_exchange.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/testing/testing_api_helpers_exchange.c') diff --git a/src/testing/testing_api_helpers_exchange.c b/src/testing/testing_api_helpers_exchange.c index 1eecbfeb..c2c5136e 100644 --- a/src/testing/testing_api_helpers_exchange.c +++ b/src/testing/testing_api_helpers_exchange.c @@ -425,7 +425,7 @@ TALER_TESTING_find_pk (const struct TALER_EXCHANGE_Keys *keys, (GNUNET_TIME_timestamp_cmp (now, <, pk->withdraw_valid_until)) && - (age_restricted == (0 != pk->key.age_mask.mask)) ) + (age_restricted == (0 != pk->key.age_mask.bits)) ) return pk; } /* do 2nd pass to check if expiration times are to blame for @@ -442,7 +442,7 @@ TALER_TESTING_find_pk (const struct TALER_EXCHANGE_Keys *keys, GNUNET_TIME_timestamp_cmp (now, >, pk->withdraw_valid_until) ) && - (age_restricted == (0 != pk->key.age_mask.mask)) ) + (age_restricted == (0 != pk->key.age_mask.bits)) ) { GNUNET_log (GNUNET_ERROR_TYPE_WARNING, -- cgit v1.2.3