aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/sctp/socket.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c
index de7921226725..33354602ae86 100644
--- a/net/sctp/socket.c
+++ b/net/sctp/socket.c
@@ -5203,6 +5203,7 @@ SCTP_STATIC int sctp_seqpacket_listen(struct sock *sk, int backlog)
5203 5203
5204 sctp_unhash_endpoint(ep); 5204 sctp_unhash_endpoint(ep);
5205 sk->sk_state = SCTP_SS_CLOSED; 5205 sk->sk_state = SCTP_SS_CLOSED;
5206 return 0;
5206 } 5207 }
5207 5208
5208 /* Return if we are already listening. */ 5209 /* Return if we are already listening. */
@@ -5250,6 +5251,7 @@ SCTP_STATIC int sctp_stream_listen(struct sock *sk, int backlog)
5250 5251
5251 sctp_unhash_endpoint(ep); 5252 sctp_unhash_endpoint(ep);
5252 sk->sk_state = SCTP_SS_CLOSED; 5253 sk->sk_state = SCTP_SS_CLOSED;
5254 return 0;
5253 } 5255 }
5254 5256
5255 if (sctp_sstate(sk, LISTENING)) 5257 if (sctp_sstate(sk, LISTENING))