diff options
author | Christian Blättler <blatc2@bfh.ch> | 2024-06-06 16:17:27 +0200 |
---|---|---|
committer | Christian Blättler <blatc2@bfh.ch> | 2024-06-06 16:17:27 +0200 |
commit | 11776f2c64d661c067f12b62c80ab177a31bd0bd (patch) | |
tree | 53873f7a4adf74c28fb30e0026fcc3ae38747f8d | |
parent | 6466a9909e7de186cef7aa0b70694d3c75db2c79 (diff) |
fix token family validity duration check
-rw-r--r-- | src/backend/taler-merchant-httpd_private-post-token-families.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-token-families.c b/src/backend/taler-merchant-httpd_private-post-token-families.c index 001cee84..5a342af2 100644 --- a/src/backend/taler-merchant-httpd_private-post-token-families.c +++ b/src/backend/taler-merchant-httpd_private-post-token-families.c @@ -133,8 +133,8 @@ TMH_private_post_token_families (const struct TMH_RequestHandler *rh, "valid_before"); } - /* Ensure that valid_after is now or in the future */ - if (GNUNET_TIME_timestamp_cmp (details.valid_after, >, now)) + /* Ensure that valid_after is not in the past */ + if (GNUNET_TIME_timestamp_cmp (details.valid_after, <, now)) { GNUNET_break (0); GNUNET_JSON_parse_free (spec); |