]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
limit is uint64, not uint32
authorAlan T. DeKok <aland@freeradius.org>
Wed, 8 Sep 2021 10:38:17 +0000 (06:38 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 8 Sep 2021 10:42:31 +0000 (06:42 -0400)
src/modules/rlm_sqlcounter/rlm_sqlcounter.c

index e298b4e6c4211d7ec6e99e6dc630e6bb45c76766..fe0f4c26f3c5358e6e45c8f727143831796175cc 100644 (file)
@@ -485,7 +485,7 @@ static unlang_action_t CC_HINT(nonnull) mod_authorize(rlm_rcode_t *p_result, mod
 
                        RDEBUG2("Time remaining (%" PRIu64 "s) is greater than time to reset (%" PRIu64 "s).  "
                                "Adding %" PRIu64 "s to reply value", to_reset, res, to_reset);
-                       res = to_reset + limit->vp_uint32;
+                       res = to_reset + limit->vp_uint64;
                }
 
                /*