]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
treat TMPL_TYPE_EXEC as FR_TYPE_STRING, too
authorAlan T. DeKok <aland@freeradius.org>
Sun, 10 Jan 2021 14:34:03 +0000 (09:34 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 10 Jan 2021 14:34:03 +0000 (09:34 -0500)
src/lib/server/cond_tokenize.c

index 4746313093f3ab0a6fc234ceb4e8e455cc668e30..0773b5941a773f70d6f82abfce58ab89e139d115 100644 (file)
@@ -274,7 +274,7 @@ int fr_cond_promote_types(fr_cond_t *c, fr_sbuff_t *in, fr_sbuff_marker_t *m_lhs
                 */
                lhs_type = tmpl_da(c->data.map->lhs)->type;
 
-       } else if (tmpl_is_xlat(c->data.map->lhs)) {
+       } else if (tmpl_is_xlat(c->data.map->lhs) || tmpl_is_exec(c->data.map->lhs)) {
                lhs_type = FR_TYPE_STRING;
 
        } else {
@@ -293,7 +293,7 @@ int fr_cond_promote_types(fr_cond_t *c, fr_sbuff_t *in, fr_sbuff_marker_t *m_lhs
        } else if (tmpl_is_attr(c->data.map->rhs)) {
                rhs_type = tmpl_da(c->data.map->rhs)->type;
 
-       } else if (tmpl_is_xlat(c->data.map->rhs)) {
+       } else if (tmpl_is_xlat(c->data.map->rhs) || tmpl_is_exec(c->data.map->rhs)) {  
                rhs_type = FR_TYPE_STRING;
 
        } else {