]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
fix typo in cut&paste. CID #1504002
authorAlan T. DeKok <aland@freeradius.org>
Mon, 11 Apr 2022 23:00:21 +0000 (19:00 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 11 Apr 2022 23:00:21 +0000 (19:00 -0400)
src/lib/util/calc.c

index 88b989c14c941b7f089fcfe1f5e69dcf349ee4c1..ab73c319919c28f3705a01851f4f8b445c477dfc 100644 (file)
@@ -610,7 +610,7 @@ static int calc_bool(UNUSED TALLOC_CTX *ctx, fr_value_box_t *dst, fr_value_box_t
                a = &one;
        }
 
-       if (a->type != FR_TYPE_BOOL) {
+       if (b->type != FR_TYPE_BOOL) {
                if (fr_value_box_cast(NULL, &two, FR_TYPE_BOOL, NULL, b) < 0) return -1;
                b = &two;
        }