From: Arran Cudbard-Bell Date: Thu, 25 May 2017 19:27:28 +0000 (-0400) Subject: Remove double checking of condition X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be7141807430f0e81f21b38a8ff6eaef3df80af8;p=thirdparty%2Ffreeradius-server.git Remove double checking of condition --- diff --git a/src/main/unlang_compile.c b/src/main/unlang_compile.c index e7d8795b7d7..87a51587028 100644 --- a/src/main/unlang_compile.c +++ b/src/main/unlang_compile.c @@ -720,8 +720,7 @@ static bool pass2_cond_callback(void *ctx, fr_cond_t *c) * But now we've just converted "%{Attr}" * to &Attr, so we've got to do it again. */ - if ((map->lhs->type == TMPL_TYPE_ATTR) && - (map->rhs->type == TMPL_TYPE_UNPARSED)) { + if (map->lhs->type == TMPL_TYPE_ATTR) { if ((map->rhs->len > 0) || (map->op != T_OP_CMP_EQ) || (map->lhs->tmpl_da->type == FR_TYPE_STRING) ||