diff options
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/netfilter/ip_tables.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv4/netfilter/ip_tables.c b/net/ipv4/netfilter/ip_tables.c index 3d5d4a4640c3..673581db986e 100644 --- a/net/ipv4/netfilter/ip_tables.c +++ b/net/ipv4/netfilter/ip_tables.c | |||
@@ -1994,6 +1994,8 @@ compat_get_entries(struct compat_ipt_get_entries __user *uptr, int *len) | |||
1994 | return ret; | 1994 | return ret; |
1995 | } | 1995 | } |
1996 | 1996 | ||
1997 | static int do_ipt_get_ctl(struct sock *, int, void __user *, int *); | ||
1998 | |||
1997 | static int | 1999 | static int |
1998 | compat_do_ipt_get_ctl(struct sock *sk, int cmd, void __user *user, int *len) | 2000 | compat_do_ipt_get_ctl(struct sock *sk, int cmd, void __user *user, int *len) |
1999 | { | 2001 | { |
@@ -2007,8 +2009,7 @@ compat_do_ipt_get_ctl(struct sock *sk, int cmd, void __user *user, int *len) | |||
2007 | ret = compat_get_entries(user, len); | 2009 | ret = compat_get_entries(user, len); |
2008 | break; | 2010 | break; |
2009 | default: | 2011 | default: |
2010 | duprintf("compat_do_ipt_get_ctl: unknown request %i\n", cmd); | 2012 | ret = do_ipt_get_ctl(sk, cmd, user, len); |
2011 | ret = -EINVAL; | ||
2012 | } | 2013 | } |
2013 | return ret; | 2014 | return ret; |
2014 | } | 2015 | } |