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/exchange/taler-exchange-httpd_keys.c | |
parent | 4978b1e966af48a18cac86aa224b3c266a9531d7 (diff) | |
download | exchange-7624db4efd91aee964b54ad67be38dd901a66040.tar.gz exchange-7624db4efd91aee964b54ad67be38dd901a66040.tar.bz2 exchange-7624db4efd91aee964b54ad67be38dd901a66040.zip |
-refactor TALER_AgeMask.mask -> TALER_AgeMask.bits
also: fix off-by-one in TALER_age_restriction_commit
Diffstat (limited to 'src/exchange/taler-exchange-httpd_keys.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_keys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/exchange/taler-exchange-httpd_keys.c b/src/exchange/taler-exchange-httpd_keys.c index 8d90afae6..33f9170d3 100644 --- a/src/exchange/taler-exchange-httpd_keys.c +++ b/src/exchange/taler-exchange-httpd_keys.c @@ -797,7 +797,7 @@ load_age_mask (const char*section_name) static const struct TALER_AgeMask null_mask = {0}; struct TALER_AgeMask age_mask = TALER_extensions_age_restriction_ageMask (); - if (age_mask.mask == 0) + if (age_mask.bits == 0) return null_mask; if (GNUNET_OK != (GNUNET_CONFIGURATION_have_value ( @@ -2120,7 +2120,7 @@ finish_keys_response (struct TEH_KeyStateHandle *ksh) * the properties of the denomination. Also, we build up the right * hash for the corresponding array. */ if (TEH_age_restriction_enabled && - (0 != dk->denom_pub.age_mask.mask)) + (0 != dk->denom_pub.age_mask.bits)) { have_age_restricted_denoms = true; array = age_restricted_denoms; |