From c5894b0708a159bf30e06f06e584be7c8ce89128 Mon Sep 17 00:00:00 2001 From: bol-van Date: Tue, 3 Feb 2026 16:40:14 +0300 Subject: [PATCH] nfqws2: fix icmp_data reconstruct in 32-bit luajit --- nfq2/lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nfq2/lua.c b/nfq2/lua.c index ed29cce..dfbe488 100644 --- a/nfq2/lua.c +++ b/nfq2/lua.c @@ -2305,7 +2305,7 @@ bool lua_reconstruct_icmphdr(lua_State *L, int idx, struct icmp46 *icmp) lua_getfield(L,idx,"icmp_data"); if (lua_type(L,-1)!=LUA_TNUMBER) goto err; - icmp->icmp_data32 = htonl((uint32_t)lua_tointeger(L,-1)); + icmp->icmp_data32 = htonl((uint32_t)lua_tolint(L,-1)); lua_pop(L, 1); lua_getfield(L,idx,"icmp_cksum");