From: Alan T. DeKok Date: Thu, 9 Jul 2015 17:57:15 +0000 (-0400) Subject: Don't convert RHS to data if RHS is empty X-Git-Tag: release_3_0_10~362 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfcb9b42b1633953d109192adf231a54c3d27500;p=thirdparty%2Ffreeradius-server.git Don't convert RHS to data if RHS is empty FIXME: The test should really be converted to an existence check --- diff --git a/src/main/modcall.c b/src/main/modcall.c index 6947f43aff4..de625c98ee6 100644 --- a/src/main/modcall.c +++ b/src/main/modcall.c @@ -3220,7 +3220,7 @@ static bool pass2_callback(void *ctx, fr_cond_t *c) * * @todo v3.1: allow anything anywhere. */ - if (map->rhs->type != TMPL_TYPE_LITERAL) { + if ((map->rhs->type != TMPL_TYPE_LITERAL) || !map->rhs->len) { if (!pass2_xlat_compile(map->ci, &map->lhs, false, NULL)) { return false; }