]> bbs.cooldavid.org Git - net-next-2.6.git/commit
X25 fix dead unaccepted sockets
authorandrew hendry <andrew.hendry@gmail.com>
Sat, 17 Apr 2010 14:17:32 +0000 (14:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Apr 2010 23:31:50 +0000 (16:31 -0700)
commit2cec6b014da6fb4a40ba1c6556cdf9681ed3f89e
tree812d44f58c5b0a596db203d75bfd7891d884b8b1
parent761172fbf672c5784b2a0d71ca2f4389eb7a2c21
X25 fix dead unaccepted sockets

1, An X25 program binds and listens
2, calls arrive waiting to be accepted
3, Program exits without accepting
4, Sockets time out but don't get correctly cleaned up
5, cat /proc/net/x25/socket shows the dead sockets with bad inode fields.

This line borrowed from AX25 sets the dying socket so the timers clean up later.

Signed-off-by: Andrew Hendry <andrew.hendry@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/x25/af_x25.c