summaryrefslogtreecommitdiff
path: root/net/xtables-addons/patches/201-fix-lua-packetscript.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net/xtables-addons/patches/201-fix-lua-packetscript.patch')
-rw-r--r--net/xtables-addons/patches/201-fix-lua-packetscript.patch9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/xtables-addons/patches/201-fix-lua-packetscript.patch b/net/xtables-addons/patches/201-fix-lua-packetscript.patch
index a9fb796d0..5a016e2ae 100644
--- a/net/xtables-addons/patches/201-fix-lua-packetscript.patch
+++ b/net/xtables-addons/patches/201-fix-lua-packetscript.patch
@@ -22,6 +22,15 @@
{
uint32_t verdict;
lua_packet_segment *p;
+@@ -79,7 +79,7 @@ lua_tg(struct sk_buff *pskb, const struc
+
+ L = lua_envs[info->state_id]->L;
+
+- if (!skb_make_writable(pskb, pskb->len))
++ if (skb_ensure_writable(pskb, pskb->len))
+ return NF_DROP;
+
+ /* call the function provided by --function parameter or the default 'process_packet' defined in Lua */
@@ -88,11 +88,11 @@ lua_tg(struct sk_buff *pskb, const struc
/* push the lua_packet_segment as a parameter */
p = (lua_packet_segment *)lua_newuserdata(L, sizeof(lua_packet_segment));