Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Dec 2013 21:29:23 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r259575 - user/ae/inet6/sys/netinet6
Message-ID:  <201312182129.rBILTNhb080295@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Wed Dec 18 21:29:23 2013
New Revision: 259575
URL: http://svnweb.freebsd.org/changeset/base/259575

Log:
  If socket is already bound to the source, no need to apply jail's
  restrictions to it.

Modified:
  user/ae/inet6/sys/netinet6/in6_src.c

Modified: user/ae/inet6/sys/netinet6/in6_src.c
==============================================================================
--- user/ae/inet6/sys/netinet6/in6_src.c	Wed Dec 18 21:23:16 2013	(r259574)
+++ user/ae/inet6/sys/netinet6/in6_src.c	Wed Dec 18 21:29:23 2013	(r259575)
@@ -677,13 +677,6 @@ in6_selectsrc(struct sockaddr_in6 *dst, 
 	 * Otherwise, if the socket has already bound the source, just use it.
 	 */
 	if (inp != NULL && !IN6_IS_ADDR_UNSPECIFIED(&inp->in6p_laddr)) {
-#if 0		/* XXX: Jail support. */
-		if (cred != NULL &&
-		    (error = prison_local_ip6(cred, &inp->in6p_laddr,
-		    ((inp->inp_flags & IN6P_IPV6_V6ONLY) != 0))) != 0)
-			return (error);
-		bcopy(&inp->in6p_laddr, srcp, sizeof(*srcp));
-#endif
 		if (ro == &ro6)
 			RO_RTFREE(ro);
 		*srcp = inp->in6p_laddr;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312182129.rBILTNhb080295>