Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 129717
b: refs/heads/master
c: 656caff
h: refs/heads/master
i:
  129715: 3ccb255
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Jan 13, 2009
1 parent 05d00fc commit 9ee2e21
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 47e0e1ca13d64eeeb687995fbe4e239e743d7544
refs/heads/master: 656caff20e12ba6e07b4bf342641df5ab33b4e49
8 changes: 8 additions & 0 deletions trunk/net/netfilter/x_tables.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ static int match_revfn(u8 af, const char *name, u8 revision, int *bestp)
have_rev = 1;
}
}

if (af != NFPROTO_UNSPEC && !have_rev)
return match_revfn(NFPROTO_UNSPEC, name, revision, bestp);

return have_rev;
}

Expand All @@ -289,6 +293,10 @@ static int target_revfn(u8 af, const char *name, u8 revision, int *bestp)
have_rev = 1;
}
}

if (af != NFPROTO_UNSPEC && !have_rev)
return target_revfn(NFPROTO_UNSPEC, name, revision, bestp);

return have_rev;
}

Expand Down

0 comments on commit 9ee2e21

Please sign in to comment.