Fis the value of *optlen when calling getsockopt() for

SCTP_REMOTE_UDP_ENCAPS_PORT.
This issue was reported by Andrew Galante.
MFC after: 3 days
This commit is contained in:
Michael Tuexen 2013-10-28 20:45:19 +00:00
parent d5814e82fa
commit 92dfa76cbc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257274

View File

@ -3281,7 +3281,7 @@ sctp_getopt(struct socket *so, int optname, void *optval, size_t *optsize,
}
}
if (error == 0) {
*optsize = sizeof(struct sctp_paddrparams);
*optsize = sizeof(struct sctp_udpencaps);
}
break;
}