diff options
Diffstat (limited to 'net/x25/af_x25.c')
-rw-r--r-- | net/x25/af_x25.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/x25/af_x25.c b/net/x25/af_x25.c index cbddd0cb83f1..36e84e13c6aa 100644 --- a/net/x25/af_x25.c +++ b/net/x25/af_x25.c | |||
@@ -402,6 +402,7 @@ static void __x25_destroy_socket(struct sock *sk) | |||
402 | /* | 402 | /* |
403 | * Queue the unaccepted socket for death | 403 | * Queue the unaccepted socket for death |
404 | */ | 404 | */ |
405 | skb->sk->sk_state = TCP_LISTEN; | ||
405 | sock_set_flag(skb->sk, SOCK_DEAD); | 406 | sock_set_flag(skb->sk, SOCK_DEAD); |
406 | x25_start_heartbeat(skb->sk); | 407 | x25_start_heartbeat(skb->sk); |
407 | x25_sk(skb->sk)->state = X25_STATE_0; | 408 | x25_sk(skb->sk)->state = X25_STATE_0; |