svn commit: r259575 - user/ae/inet6/sys/netinet6

Andrey V. Elsukov ae at FreeBSD.org
Wed Dec 18 21:29:24 UTC 2013


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;


More information about the svn-src-user mailing list