Template
1
0
mirror of https://github.com/bol-van/zapret2.git synced 2026-03-14 06:13:09 +00:00

nfqws2: fix icmp_data reconstruct in 32-bit luajit

This commit is contained in:
bol-van
2026-02-03 16:40:14 +03:00
parent 79b018dd74
commit c5894b0708

View File

@@ -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");