diff options
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index a1ab29e2ab3b..412139f4eccd 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
@@ -942,7 +942,8 @@ static void tcp_v6_send_reset(const struct sock *sk, struct sk_buff *skb) | |||
942 | 942 | ||
943 | if (sk) { | 943 | if (sk) { |
944 | oif = sk->sk_bound_dev_if; | 944 | oif = sk->sk_bound_dev_if; |
945 | trace_tcp_send_reset(sk, skb); | 945 | if (sk_fullsock(sk)) |
946 | trace_tcp_send_reset(sk, skb); | ||
946 | } | 947 | } |
947 | 948 | ||
948 | tcp_v6_send_response(sk, skb, seq, ack_seq, 0, 0, 0, oif, key, 1, 0, 0); | 949 | tcp_v6_send_response(sk, skb, seq, ack_seq, 0, 0, 0, oif, key, 1, 0, 0); |