From: Vlad Yasevich Date: Thu, 30 Aug 2007 18:03:58 +0000 (-0400) Subject: SCTP: Correctly disable listening when backlog is 0. X-Git-Tag: v2.6.23-rc5~37^2~5^2~2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=498d63071ef378e201979e441aefcc6565702ca7;p=linux-2.6 SCTP: Correctly disable listening when backlog is 0. Signed-off-by: Vlad Yasevich --- diff --git a/net/sctp/socket.c b/net/sctp/socket.c index de79212267..33354602ae 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) sctp_unhash_endpoint(ep); sk->sk_state = SCTP_SS_CLOSED; + return 0; } /* Return if we are already listening. */ @@ -5250,6 +5251,7 @@ SCTP_STATIC int sctp_stream_listen(struct sock *sk, int backlog) sctp_unhash_endpoint(ep); sk->sk_state = SCTP_SS_CLOSED; + return 0; } if (sctp_sstate(sk, LISTENING))