]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
remove assert
authorAlan T. DeKok <aland@freeradius.org>
Thu, 25 Nov 2021 16:27:22 +0000 (11:27 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 25 Nov 2021 16:27:22 +0000 (11:27 -0500)
src/lib/util/calc.c

index 474d4083ee8e9fd6da956c08762d4ec61fe4e9c6..9143676ea529b8f2a478b136f3e0d5df0da8364d 100644 (file)
@@ -1080,14 +1080,6 @@ int fr_value_calc_binary_op(TALLOC_CTX *ctx, fr_value_box_t *dst, fr_type_t hint
        fr_value_box_init_null(&one);
        fr_value_box_init_null(&two);
 
-       /*
-        *      Ensure that the upcast array is ordered.  We have
-        *      entries in [a][b] only when a<b.  This limit ensures
-        *      that we don't have conflicting entries.
-        */
-       fr_assert((upcast[a->type][b->type] == FR_TYPE_NULL) || (a->type < b->type));
-       fr_assert((upcast[b->type][a->type] == FR_TYPE_NULL) || (b->type < a->type));
-
        /*
         *      We don't know what the output type should be.  Try to
         *      guess based on a variety of factors.