From: Alan T. DeKok Date: Tue, 22 Nov 2022 15:40:06 +0000 (-0500) Subject: pass variable to function X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc96d3d02ffbe730a894640d350f8b0efc33d435;p=thirdparty%2Ffreeradius-server.git pass variable to function --- diff --git a/src/lib/unlang/edit.c b/src/lib/unlang/edit.c index ebd232c5dd1..0dee31bd1e2 100644 --- a/src/lib/unlang/edit.c +++ b/src/lib/unlang/edit.c @@ -1219,7 +1219,7 @@ static int expanded_lhs_attribute(request_t *request, unlang_frame_state_edit_t { REXDENT(); - if (tmpl_attr_from_result(state, NULL, ¤t->lhs, request) < 0) return -1; + if (tmpl_attr_from_result(state, current->map, ¤t->lhs, request) < 0) return -1; return current->check_lhs(request, state, current); }