projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0ce929
)
SCTP: Correctly disable listening when backlog is 0.
author
Vlad Yasevich
<vladislav.yasevich@hp.com>
Thu, 30 Aug 2007 18:03:58 +0000
(14:03 -0400)
committer
Vlad Yasevich
<vladislav.yasevich@hp.com>
Thu, 30 Aug 2007 18:03:58 +0000
(14:03 -0400)
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
net/sctp/socket.c
patch
|
blob
|
history
diff --git
a/net/sctp/socket.c
b/net/sctp/socket.c
index de7921226725c013f51e74afedc5a51adc4fffe7..33354602ae86ef4b888bb534778f1d50d75af8b0 100644
(file)
--- 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))