diff options
author | Eric Dumazet <edumazet@google.com> | 2015-03-17 07:06:15 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-17 22:17:59 +0300 |
commit | a8399231f0b6e72bc140bcc4fecb0c622298a6bd (patch) | |
tree | 32b424cebe059e8081ca93b17cb37af36a235f23 /net/netfilter/nf_log_common.c | |
parent | c24973957975403521ca76a776c2dfd12fbe9add (diff) | |
download | linux-a8399231f0b6e72bc140bcc4fecb0c622298a6bd.tar.xz |
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.c | 2 |
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); |