mirror of
https://github.com/bol-van/zapret2.git
synced 2026-03-21 16:55:49 +00:00
nfqws2: simplify complex unwinds in lua code
This commit is contained in:
@@ -1664,7 +1664,7 @@ static bool lua_reconstruct_ip6exthdr(lua_State *L, int idx, struct ip6_hdr *ip6
|
||||
LUA_STACK_GUARD_LEAVE(L, 0)
|
||||
return true;
|
||||
err:
|
||||
LUA_STACK_GUARD_UNWIND_RETURN(L, 0)
|
||||
LUA_STACK_GUARD_UNWIND(L)
|
||||
return false;
|
||||
}
|
||||
bool lua_reconstruct_ip6hdr(lua_State *L, int idx, struct ip6_hdr *ip6, size_t *len, uint8_t last_proto, bool preserve_next)
|
||||
@@ -1910,7 +1910,7 @@ end:
|
||||
LUA_STACK_GUARD_LEAVE(L, 0)
|
||||
return true;
|
||||
err:
|
||||
LUA_STACK_GUARD_UNWIND_RETURN(L, 0)
|
||||
LUA_STACK_GUARD_UNWIND(L)
|
||||
return false;
|
||||
}
|
||||
bool lua_reconstruct_tcphdr(lua_State *L, int idx, struct tcphdr *tcp, size_t *len)
|
||||
@@ -2199,7 +2199,7 @@ bool lua_reconstruct_dissect(lua_State *L, int idx, uint8_t *buf, size_t *len, b
|
||||
LUA_STACK_GUARD_LEAVE(L, 0)
|
||||
return true;
|
||||
err:
|
||||
LUA_STACK_GUARD_UNWIND_RETURN(L, 0)
|
||||
LUA_STACK_GUARD_UNWIND(L)
|
||||
return false;
|
||||
}
|
||||
static int luacall_reconstruct_dissect(lua_State *L)
|
||||
|
||||
Reference in New Issue
Block a user