mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
Fix the handling of SCTP_CURRENT_ASSOC and SCTP_ALL_ASSOC in
sctp_opt_info(). MFC after: 3 days
This commit is contained in:
parent
7c9b649294
commit
b71f585303
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=253105
@ -274,6 +274,11 @@ sctp_opt_info(int sd, sctp_assoc_t id, int opt, void *arg, socklen_t * size)
|
||||
errno = EINVAL;
|
||||
return (-1);
|
||||
}
|
||||
if ((id == SCTP_CURRENT_ASSOC) ||
|
||||
(id == SCTP_ALL_ASSOC)) {
|
||||
errno = EINVAL;
|
||||
return (-1);
|
||||
}
|
||||
switch (opt) {
|
||||
case SCTP_RTOINFO:
|
||||
((struct sctp_rtoinfo *)arg)->srto_assoc_id = id;
|
||||
|
Loading…
Reference in New Issue
Block a user