svn commit: r253265 - stable/8/lib/libc/net
Michael Tuexen
tuexen at FreeBSD.org
Fri Jul 12 13:52:27 UTC 2013
Author: tuexen
Date: Fri Jul 12 13:52:27 2013
New Revision: 253265
URL: http://svnweb.freebsd.org/changeset/base/253265
Log:
MFC r253105:
Fix the handling of SCTP_CURRENT_ASSOC and SCTP_ALL_ASSOC in
sctp_opt_info().
Modified:
stable/8/lib/libc/net/sctp_sys_calls.c
Directory Properties:
stable/8/lib/ (props changed)
stable/8/lib/libc/ (props changed)
Modified: stable/8/lib/libc/net/sctp_sys_calls.c
==============================================================================
--- stable/8/lib/libc/net/sctp_sys_calls.c Fri Jul 12 13:51:19 2013 (r253264)
+++ stable/8/lib/libc/net/sctp_sys_calls.c Fri Jul 12 13:52:27 2013 (r253265)
@@ -274,6 +274,11 @@ sctp_opt_info(int sd, sctp_assoc_t id, i
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;
More information about the svn-src-all
mailing list