Honor the backlog field.
This commit is contained in:
parent
3017b21bb6
commit
94f66d603a
@ -7143,7 +7143,11 @@ sctp_listen(struct socket *so, int backlog, struct thread *p)
|
||||
solisten_proto(so, backlog);
|
||||
SOCK_UNLOCK(so);
|
||||
}
|
||||
inp->sctp_flags |= SCTP_PCB_FLAGS_ACCEPTING;
|
||||
if (backlog > 0) {
|
||||
inp->sctp_flags |= SCTP_PCB_FLAGS_ACCEPTING;
|
||||
} else {
|
||||
inp->sctp_flags &= ~SCTP_PCB_FLAGS_ACCEPTING;
|
||||
}
|
||||
SCTP_INP_WUNLOCK(inp);
|
||||
return (error);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user