]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
don't cast values for "=*" / CMP_TRUE operator, as it has no values
authorAlan T. DeKok <aland@freeradius.org>
Mon, 14 Dec 2020 18:47:28 +0000 (13:47 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 14 Dec 2020 18:47:28 +0000 (13:47 -0500)
src/lib/server/map.c

index 76b2d3d5c9d8d160c224782621fc569506518ff6..5d247772f22fbc6b6e6b364a22ca378fc7ad58f7 100644 (file)
@@ -1155,7 +1155,7 @@ int map_to_vp(TALLOC_CTX *ctx, fr_pair_list_t *out, request_t *request, map_t co
                                talloc_free(n);
                                goto error;
                        }
-               } else {
+               } else if (map->op != T_OP_CMP_TRUE) {
                        if (fr_value_box_cast(n, &n->data, n->vp_type, n->da, tmpl_value(map->rhs)) < 0) {
                                RPEDEBUG("Implicit cast failed");
                                rcode = -1;