diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2021-04-21 12:34:56 +0200 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2021-04-21 12:34:56 +0200 |
commit | dfe86f94252a403b8d2ce12fb2862712d4b7fbdd (patch) | |
tree | a662c43987d9172e421a0f9e0db849370498899e /src | |
parent | 6c1b06b0629b146981fcdfb5ecea40bbc6450a9e (diff) |
-fix expiration in us
Diffstat (limited to 'src')
-rw-r--r-- | src/reclaim/plugin_reclaim_credential_pabc.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/reclaim/plugin_reclaim_credential_pabc.c b/src/reclaim/plugin_reclaim_credential_pabc.c index ff04624a4..47f9a9384 100644 --- a/src/reclaim/plugin_reclaim_credential_pabc.c +++ b/src/reclaim/plugin_reclaim_credential_pabc.c @@ -297,7 +297,7 @@ pabc_get_expiration (void *cls, size_t data_size, struct GNUNET_TIME_Absolute *exp) { - uint32_t exp_i; + uint64_t exp_i; char *exp_str; if (PABC_OK != pabc_cred_get_attr_by_name_from_cred (data, @@ -309,13 +309,18 @@ pabc_get_expiration (void *cls, return GNUNET_SYSERR; } - if (1 != sscanf (exp_str, "%u", &exp_i)) + if (1 != sscanf (exp_str, "%llu", &exp_i)) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Invalid expiration `%s'\n", exp_str); GNUNET_free (exp_str); return GNUNET_SYSERR; } + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "Converted expiration string `%s' to %llu", + exp_str, exp_i); + + GNUNET_free (exp_str); exp->abs_value_us = exp_i * 1000 * 1000; return GNUNET_OK; } |