From owner-svn-src-head@FreeBSD.ORG Tue Jul 9 19:12:47 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 9A027B54; Tue, 9 Jul 2013 19:12:47 +0000 (UTC) (envelope-from tuexen@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 8C56E1623; Tue, 9 Jul 2013 19:12:47 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r69JClga007083; Tue, 9 Jul 2013 19:12:47 GMT (envelope-from tuexen@svn.freebsd.org) Received: (from tuexen@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r69JCl9r007082; Tue, 9 Jul 2013 19:12:47 GMT (envelope-from tuexen@svn.freebsd.org) Message-Id: <201307091912.r69JCl9r007082@svn.freebsd.org> From: Michael Tuexen Date: Tue, 9 Jul 2013 19:12:47 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r253105 - head/lib/libc/net X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jul 2013 19:12:47 -0000 Author: tuexen Date: Tue Jul 9 19:12:47 2013 New Revision: 253105 URL: http://svnweb.freebsd.org/changeset/base/253105 Log: Fix the handling of SCTP_CURRENT_ASSOC and SCTP_ALL_ASSOC in sctp_opt_info(). MFC after: 3 days Modified: head/lib/libc/net/sctp_sys_calls.c Modified: head/lib/libc/net/sctp_sys_calls.c ============================================================================== --- head/lib/libc/net/sctp_sys_calls.c Tue Jul 9 19:04:19 2013 (r253104) +++ head/lib/libc/net/sctp_sys_calls.c Tue Jul 9 19:12:47 2013 (r253105) @@ -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;