Template
1
0
mirror of https://github.com/bol-van/zapret2.git synced 2026-03-22 01:05:48 +00:00

AI inspired fixes

This commit is contained in:
bol-van
2026-01-31 17:47:18 +03:00
parent a531da39fd
commit 2490ef6951
5 changed files with 11 additions and 6 deletions

View File

@@ -1565,7 +1565,7 @@ void lua_push_ip6hdr(lua_State *L, const struct ip6_hdr *ip6, size_t len)
{
LUA_STACK_GUARD_ENTER(L)
if (ip6)
if (ip6 && len>=sizeof(struct ip6_hdr))
{
lua_createtable(L, 0, 7);
lua_pushf_lint(L,"ip6_flow",ntohl(ip6->ip6_ctlun.ip6_un1.ip6_un1_flow));