Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ax25: Quick fix for making sure unaccepted sockets get destroyed.
Since we reverted 30902dc ("ax25: Fix
std timer socket destroy handling.") we have to put some kind of fix
in to cure the issue whereby unaccepted connections do not get destroyed.

The approach used here is from Tihomir Heidelberg - 9a4gl

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
davem330 committed Oct 6, 2008
1 parent 88a944e commit 33d1d2c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/ax25/af_ax25.c
Expand Up @@ -317,6 +317,9 @@ void ax25_destroy_socket(ax25_cb *ax25)
/* Queue the unaccepted socket for death */
sock_orphan(skb->sk);

/* 9A4GL: hack to release unaccepted sockets */
skb->sk->sk_state = TCP_LISTEN;

ax25_start_heartbeat(sax25);
sax25->state = AX25_STATE_0;
}
Expand Down

0 comments on commit 33d1d2c

Please sign in to comment.