]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
We don't marshal structured attributes to lua yet
authorNick Porter <nick@portercomputing.co.uk>
Fri, 3 Nov 2023 11:28:09 +0000 (11:28 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Fri, 3 Nov 2023 13:22:14 +0000 (13:22 +0000)
src/modules/rlm_lua/lua.c

index 378d6ec65bb113d79834d45b2745be0fe220ad37..bf308794e8a2ea59ae672ccd2fea61fffa328c31 100644 (file)
@@ -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;