Skip to content

Commit 790154d

Browse files
committed
rely on fr_value_box_is_safe_for() rather then checking safe_for value
1 parent b894377 commit 790154d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/unlang/xlat_eval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ static xlat_action_t xlat_process_arg_list(TALLOC_CTX *ctx, fr_value_box_list_t
291291

292292
#define ESCAPE(_arg, _vb, _arg_num) \
293293
do { \
294-
if ((_arg)->func && (!(_vb)->safe_for || !fr_value_box_is_safe_for((_vb), (_arg)->safe_for) || (_arg)->always_escape)) { \
294+
if ((_arg)->func && (!fr_value_box_is_safe_for((_vb), (_arg)->safe_for) || (_arg)->always_escape)) { \
295295
if ((_arg)->func(request, _vb, (_arg)->uctx) < 0) { \
296296
RPEDEBUG("Function \"%s\" failed escaping argument %u", name, _arg_num); \
297297
return XLAT_ACTION_FAIL; \

0 commit comments

Comments
 (0)