summaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-06-12 23:47:58 +0200
committerDavid S. Miller <davem@davemloft.net>2008-06-13 01:34:34 +0200
commitf23d60de719e639690b2dc5c2d0e4243ff614b7a (patch)
tree39e8083b98c476978ce45f0a4fc4de111554f786 /net/ipv4/tcp_input.c
parentbnx2x: Updating the Maintainer (diff)
downloadlinux-f23d60de719e639690b2dc5c2d0e4243ff614b7a.tar.xz
linux-f23d60de719e639690b2dc5c2d0e4243ff614b7a.zip
ipv6: Fix duplicate initialization of rawv6_prot.destroy
In changeset 22dd485022f3d0b162ceb5e67d85de7c3806aa20 ("raw: Raw socket leak.") code was added so that we flush pending frames on raw sockets to avoid leaks. The ipv4 part was fine, but the ipv6 part was not done correctly. Unlike the ipv4 side, the ipv6 code already has a .destroy method for rawv6_prot. So now there were two assignments to this member, and what the compiler does is use the last one, effectively making the ipv6 parts of that changeset a NOP. Fix this by removing the: .destroy = inet6_destroy_sock, line, and adding an inet6_destroy_sock() call to the end of raw6_destroy(). Noticed by Al Viro. Signed-off-by: David S. Miller <davem@davemloft.net> Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions