aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/netfilter/arp_tables.c4
-rw-r--r--net/ipv4/netfilter/ip_tables.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/net/ipv4/netfilter/arp_tables.c b/net/ipv4/netfilter/arp_tables.c
index 4b35dba7cf7d..4f454ce9a602 100644
--- a/net/ipv4/netfilter/arp_tables.c
+++ b/net/ipv4/netfilter/arp_tables.c
@@ -388,7 +388,9 @@ static int mark_source_chains(struct xt_table_info *newinfo,
388 && unconditional(&e->arp)) || visited) { 388 && unconditional(&e->arp)) || visited) {
389 unsigned int oldpos, size; 389 unsigned int oldpos, size;
390 390
391 if (t->verdict < -NF_MAX_VERDICT - 1) { 391 if ((strcmp(t->target.u.user.name,
392 ARPT_STANDARD_TARGET) == 0) &&
393 t->verdict < -NF_MAX_VERDICT - 1) {
392 duprintf("mark_source_chains: bad " 394 duprintf("mark_source_chains: bad "
393 "negative verdict (%i)\n", 395 "negative verdict (%i)\n",
394 t->verdict); 396 t->verdict);
diff --git a/net/ipv4/netfilter/ip_tables.c b/net/ipv4/netfilter/ip_tables.c
index 41c59e391a6a..82ee7c9049ff 100644
--- a/net/ipv4/netfilter/ip_tables.c
+++ b/net/ipv4/netfilter/ip_tables.c
@@ -488,7 +488,9 @@ mark_source_chains(struct xt_table_info *newinfo,
488 && unconditional(&e->ip)) || visited) { 488 && unconditional(&e->ip)) || visited) {
489 unsigned int oldpos, size; 489 unsigned int oldpos, size;
490 490
491 if (t->verdict < -NF_MAX_VERDICT - 1) { 491 if ((strcmp(t->target.u.user.name,
492 IPT_STANDARD_TARGET) == 0) &&
493 t->verdict < -NF_MAX_VERDICT - 1) {
492 duprintf("mark_source_chains: bad " 494 duprintf("mark_source_chains: bad "
493 "negative verdict (%i)\n", 495 "negative verdict (%i)\n",
494 t->verdict); 496 t->verdict);