[IPV6]: Avoid calling ip6_xmit() with NULL sk
authorDavid Woodhouse <dwmw2@infradead.org>
Wed, 11 Jan 2006 23:53:04 +0000 (15:53 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 12 Jan 2006 00:32:13 +0000 (16:32 -0800)
commitae0f7d5f83236a43c572a744e4bbb30e8702d821
tree3d4ce288b86cb2845d79c6adec9e254054bb0e02
parenta7768097557be91d0d4c37e8f2e38cd126c4cdf9
[IPV6]: Avoid calling ip6_xmit() with NULL sk

The ip6_xmit() function now assumes that its sk argument is non-NULL,
which isn't currently true when TCPv6 code is sending RST or ACK
packets. This fixes that code to use a socket of its own for sending
such packets, as TCPv4 does. (Thanks Andi for the pointer).

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/tcp_ipv6.c