提交 6d3e85ec 编写于 作者: N Nicolas DICHTEL 提交者: David S. Miller

[IPV6] Don't store dst_entry for RAW socket

Signed-off-by: NNicolas DICHTEL <nicolas.dichtel@6wind.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 72fb630d
...@@ -803,10 +803,7 @@ static int rawv6_sendmsg(struct kiocb *iocb, struct sock *sk, ...@@ -803,10 +803,7 @@ static int rawv6_sendmsg(struct kiocb *iocb, struct sock *sk,
err = rawv6_push_pending_frames(sk, &fl, rp); err = rawv6_push_pending_frames(sk, &fl, rp);
} }
done: done:
ip6_dst_store(sk, dst, dst_release(dst);
ipv6_addr_equal(&fl.fl6_dst, &np->daddr) ?
&np->daddr : NULL);
release_sock(sk); release_sock(sk);
out: out:
fl6_sock_release(flowlabel); fl6_sock_release(flowlabel);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部