From: Nick Porter Date: Fri, 3 Nov 2023 11:28:09 +0000 (+0000) Subject: We don't marshal structured attributes to lua yet X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bc78f71de7bd72ea3c52c26b607d48808351215;p=thirdparty%2Ffreeradius-server.git We don't marshal structured attributes to lua yet --- diff --git a/src/modules/rlm_lua/lua.c b/src/modules/rlm_lua/lua.c index 378d6ec65bb..bf308794e8a 100644 --- a/src/modules/rlm_lua/lua.c +++ b/src/modules/rlm_lua/lua.c @@ -479,6 +479,9 @@ static int _lua_list_iterator(lua_State *L) /* Packet list should be light user data too at some point... */ vp = fr_dcursor_current(cursor); + + /* Nested attributes are not currently supported */ + while (vp && fr_type_is_structural(vp->da->type)) vp = fr_dcursor_next(cursor); if(!vp) { lua_pushnil(L); return 1;