diff options
Diffstat (limited to 'net/ipv6/ping.c')
-rw-r--r-- | net/ipv6/ping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ping.c b/net/ipv6/ping.c index 18f19df4189f..8815e31a87fe 100644 --- a/net/ipv6/ping.c +++ b/net/ipv6/ping.c | |||
@@ -116,7 +116,7 @@ int ping_v6_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, | |||
116 | } else { | 116 | } else { |
117 | if (sk->sk_state != TCP_ESTABLISHED) | 117 | if (sk->sk_state != TCP_ESTABLISHED) |
118 | return -EDESTADDRREQ; | 118 | return -EDESTADDRREQ; |
119 | daddr = &np->daddr; | 119 | daddr = &sk->sk_v6_daddr; |
120 | } | 120 | } |
121 | 121 | ||
122 | if (!iif) | 122 | if (!iif) |