Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=498d63071ef378e201979e441aefcc6565702ca7 Commit: 498d63071ef378e201979e441aefcc6565702ca7 Parent: d0ce92910bc04e107b2f3f2048f07e94f570035d Author: Vlad Yasevich <[EMAIL PROTECTED]> AuthorDate: Thu Aug 30 14:03:58 2007 -0400 Committer: Vlad Yasevich <[EMAIL PROTECTED]> CommitDate: Thu Aug 30 14:03:58 2007 -0400
SCTP: Correctly disable listening when backlog is 0. Signed-off-by: Vlad Yasevich <[EMAIL PROTECTED]> --- net/sctp/socket.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/net/sctp/socket.c b/net/sctp/socket.c index de79212..3335460 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)) - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html