summaryrefslogtreecommitdiff
path: root/net/sunrpc/svcsock.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2014-03-07 19:08:33 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2014-03-08 12:35:19 +0100
commita4c2e8beba843206cf6447a85b0580a1ae5d50a0 (patch)
tree7ef23e6e31875fb7af556c1b337c4e0bc0af7194 /net/sunrpc/svcsock.c
parentd46f2cd2601d01d54fd556395483fb4032155c3b (diff)
netfilter: nft_nat: fix family validation
The family in the NAT expression is basically completely useless since we have it available during runtime anyway. Nevertheless it is used to decide the NAT family, so at least validate it properly. As we don't support cross-family NAT, it needs to match the family of the table the expression exists in. Unfortunately we can't remove it completely since we need to dump it for userspace (*sigh*), so at least reduce the memory waste. Additionally clean up the module init function by removing useless temporary variables. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/sunrpc/svcsock.c')
0 files changed, 0 insertions, 0 deletions