summaryrefslogtreecommitdiffstats
path: root/net/sctp/socket.c
diff options
context:
space:
mode:
authorVlad Yasevich <vladislav.yasevich@hp.com>2007-08-30 14:03:58 -0400
committerVlad Yasevich <vladislav.yasevich@hp.com>2007-08-30 14:03:58 -0400
commit498d63071ef378e201979e441aefcc6565702ca7 (patch)
tree2acf9c0c979de07840b42b204aed91cfafdd9f07 /net/sctp/socket.c
parentd0ce92910bc04e107b2f3f2048f07e94f570035d (diff)
downloadop-kernel-dev-498d63071ef378e201979e441aefcc6565702ca7.zip
op-kernel-dev-498d63071ef378e201979e441aefcc6565702ca7.tar.gz
SCTP: Correctly disable listening when backlog is 0.
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Diffstat (limited to 'net/sctp/socket.c')
-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 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))
OpenPOWER on IntegriCloud