aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/nf_log_common.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-03-16 21:06:15 -0700
committerDavid S. Miller <davem@davemloft.net>2015-03-17 15:17:59 -0400
commita8399231f0b6e72bc140bcc4fecb0c622298a6bd (patch)
tree32b424cebe059e8081ca93b17cb37af36a235f23 /net/netfilter/nf_log_common.c
parentbpf: allow BPF programs access 'protocol' and 'vlan_tci' fields (diff)
downloadlinux-dev-a8399231f0b6e72bc140bcc4fecb0c622298a6bd.tar.xz
linux-dev-a8399231f0b6e72bc140bcc4fecb0c622298a6bd.zip
netfilter: use sk_fullsock() helper
Upcoming request sockets have TCP_NEW_SYN_RECV state and should be special cased a bit like TCP_TIME_WAIT sockets. Signed-off-by; Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter/nf_log_common.c')
-rw-r--r--net/netfilter/nf_log_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_log_common.c b/net/netfilter/nf_log_common.c
index a2233e77cf39..2631876ac55b 100644
--- a/net/netfilter/nf_log_common.c
+++ b/net/netfilter/nf_log_common.c
@@ -133,7 +133,7 @@ EXPORT_SYMBOL_GPL(nf_log_dump_tcp_header);
void nf_log_dump_sk_uid_gid(struct nf_log_buf *m, struct sock *sk)
{
- if (!sk || sk->sk_state == TCP_TIME_WAIT)
+ if (!sk || !sk_fullsock(sk))
return;
read_lock_bh(&sk->sk_callback_lock);