]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Remove double checking of condition
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 25 May 2017 19:27:28 +0000 (15:27 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 25 May 2017 19:39:32 +0000 (15:39 -0400)
src/main/unlang_compile.c

index e7d8795b7d73ae9160e444a8e3f00fe8a554c3fe..87a51587028c8ddc87c0440de8d3a3538e2e99fa 100644 (file)
@@ -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) ||