]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
typos in calc.c
authorAlan T. DeKok <aland@freeradius.org>
Sun, 1 Mar 2026 16:00:20 +0000 (11:00 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 1 Mar 2026 16:36:05 +0000 (11:36 -0500)
src/lib/util/calc.c

index 0e71073d4e67a85fe40bacab85c7b7e09eee555e..6c0c9e34a402c398c9126b6d604164ccbdf150b2 100644 (file)
@@ -1748,7 +1748,7 @@ static int calc_uint64(TALLOC_CTX *ctx, fr_value_box_t *dst, fr_value_box_t cons
        case T_MOD:
                if (b->vb_uint64 == 0) return ERR_ZERO;
 
-               result.vb_uint64 = a->vb_uint64 % in2->vb_uint64;
+               result.vb_uint64 = a->vb_uint64 % b->vb_uint64;
                break;
 
        case T_AND:
@@ -1835,7 +1835,7 @@ static int calc_int64(TALLOC_CTX *ctx, fr_value_box_t *dst, fr_value_box_t const
        case T_MOD:
                if (b->vb_int64 == 0) return ERR_ZERO;
 
-               result.vb_int64 = a->vb_int64 % in2->vb_int64;
+               result.vb_int64 = a->vb_int64 % b->vb_int64;
                break;
 
        case T_AND: