diff options
Diffstat (limited to 'package/network/utils/iptables/patches/400-lenient-restore.patch')
-rw-r--r-- | package/network/utils/iptables/patches/400-lenient-restore.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/package/network/utils/iptables/patches/400-lenient-restore.patch b/package/network/utils/iptables/patches/400-lenient-restore.patch index 696d733225..c9c490602b 100644 --- a/package/network/utils/iptables/patches/400-lenient-restore.patch +++ b/package/network/utils/iptables/patches/400-lenient-restore.patch @@ -77,10 +77,10 @@ Index: iptables-1.4.18/iptables/ip6tables-restore.c DEBUGP("argv[%u]: %s\n", a, newargv[a]); - ret = do_command6(newargc, newargv, -- &newargv[2], &handle); +- &newargv[2], &handle, true); + if (!setjmp(jmp)) + ret = do_command6(newargc, newargv, -+ &newargv[2], &handle); ++ &newargv[2], &handle, true); + else + ret = 1; @@ -165,10 +165,10 @@ Index: iptables-1.4.18/iptables/iptables-restore.c DEBUGP("argv[%u]: %s\n", a, newargv[a]); - ret = do_command4(newargc, newargv, -- &newargv[2], &handle); +- &newargv[2], &handle, true); + if (!setjmp(jmp)) + ret = do_command4(newargc, newargv, -+ &newargv[2], &handle); ++ &newargv[2], &handle, true); + else + ret = 1; |