From: Alan T. DeKok Date: Mon, 14 Dec 2020 18:47:28 +0000 (-0500) Subject: don't cast values for "=*" / CMP_TRUE operator, as it has no values X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb65ea54229ac87c88c5221f1e90d0684d5c1f52;p=thirdparty%2Ffreeradius-server.git don't cast values for "=*" / CMP_TRUE operator, as it has no values --- diff --git a/src/lib/server/map.c b/src/lib/server/map.c index 76b2d3d5c9d..5d247772f22 100644 --- a/src/lib/server/map.c +++ b/src/lib/server/map.c @@ -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;