diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2022-03-02 10:59:42 +0100 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2022-03-02 10:59:42 +0100 |
commit | 7624db4efd91aee964b54ad67be38dd901a66040 (patch) | |
tree | 4692b0fcf8070e530f9ee0dccecb54ce39289a69 /src/testing/testing_api_helpers_exchange.c | |
parent | 4978b1e966af48a18cac86aa224b3c266a9531d7 (diff) | |
download | exchange-7624db4efd91aee964b54ad67be38dd901a66040.tar.xz |
-refactor TALER_AgeMask.mask -> TALER_AgeMask.bits
also: fix off-by-one in TALER_age_restriction_commit
Diffstat (limited to 'src/testing/testing_api_helpers_exchange.c')
-rw-r--r-- | src/testing/testing_api_helpers_exchange.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testing/testing_api_helpers_exchange.c b/src/testing/testing_api_helpers_exchange.c index 1eecbfeb3..c2c5136e1 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, |