mirror of
https://github.com/bol-van/zapret2.git
synced 2026-03-13 22:03:09 +00:00
nfqws2: fix icmp_data reconstruct in 32-bit luajit
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user