make patches against iptables apply again after update to 1.4.4 (#5540)

SVN-Revision: 16878
master
Florian Fainelli 15 years ago
parent 5ae8e1bf7b
commit cd64d4ce6e
  1. 13
      package/iptables/patches/1.4.3.2/010-xtables-parse-protocol-crash.patch
  2. 0
      package/iptables/patches/1.4.4/002-layer7_2.17.patch
  3. 0
      package/iptables/patches/1.4.4/005-imq.patch
  4. 0
      package/iptables/patches/1.4.4/008-netfilter_include_linux_type_h.patch
  5. 0
      package/iptables/patches/1.4.4/009-table-alignment.patch

@ -1,13 +0,0 @@
diff -ur iptables-1.4.3.2.orig/xtables.c iptables-1.4.3.2/xtables.c
--- iptables-1.4.3.2.orig/xtables.c 2009-05-03 16:17:53.000000000 +0200
+++ iptables-1.4.3.2/xtables.c 2009-05-03 16:27:37.000000000 +0200
@@ -1502,7 +1502,8 @@
else {
unsigned int i;
for (i = 0; i < ARRAY_SIZE(xtables_chain_protos); ++i) {
- if (strcmp(s, xtables_chain_protos[i].name) == 0) {
+ if ((xtables_chain_protos[i].name != NULL) &&
+ (strcmp(s, xtables_chain_protos[i].name) == 0)) {
proto = xtables_chain_protos[i].num;
break;
}
Loading…
Cancel
Save