[cobalt] add support for cobalt microservers (mips-based)
[openwrt.git] / package / iptables / patches / 1.4.3.2 / 010-xtables-parse-protocol-crash.patch
1 diff -ur iptables-1.4.3.2.orig/xtables.c iptables-1.4.3.2/xtables.c
2 --- iptables-1.4.3.2.orig/xtables.c 2009-05-03 16:17:53.000000000 +0200
3 +++ iptables-1.4.3.2/xtables.c 2009-05-03 16:27:37.000000000 +0200
4 @@ -1502,7 +1502,8 @@
5 else {
6 unsigned int i;
7 for (i = 0; i < ARRAY_SIZE(xtables_chain_protos); ++i) {
8 - if (strcmp(s, xtables_chain_protos[i].name) == 0) {
9 + if ((xtables_chain_protos[i].name != NULL) &&
10 + (strcmp(s, xtables_chain_protos[i].name) == 0)) {
11 proto = xtables_chain_protos[i].num;
12 break;
13 }
This page took 0.044843 seconds and 5 git commands to generate.