Date: Mon, 28 Mar 2016 19:32:13 +0000 (UTC) From: Michael Tuexen <tuexen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r297362 - head/sys/netinet Message-ID: <201603281932.u2SJWDNG090825@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tuexen Date: Mon Mar 28 19:32:13 2016 New Revision: 297362 URL: https://svnweb.freebsd.org/changeset/base/297362 Log: Don't allow the user to set a peer primary which is restricted and not pending. MFC after: 1 week Modified: head/sys/netinet/sctp_usrreq.c Modified: head/sys/netinet/sctp_usrreq.c ============================================================================== --- head/sys/netinet/sctp_usrreq.c Mon Mar 28 19:31:10 2016 (r297361) +++ head/sys/netinet/sctp_usrreq.c Mon Mar 28 19:32:13 2016 (r297362) @@ -5816,6 +5816,10 @@ sctp_setopt(struct socket *so, int optna __func__); continue; } + if ((sctp_is_addr_restricted(stcb, laddr->ifa)) && + (!sctp_is_addr_pending(stcb, laddr->ifa))) { + continue; + } if (laddr->ifa == ifa) { found = 1; break;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603281932.u2SJWDNG090825>