Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jan 2017 06:05:57 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r311755 - stable/11/usr.sbin/jail
Message-ID:  <201701090605.v0965vBk008560@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Mon Jan  9 06:05:57 2017
New Revision: 311755
URL: https://svnweb.freebsd.org/changeset/base/311755

Log:
  MFC r310614: Don't assign rtjp twice.

Modified:
  stable/11/usr.sbin/jail/jail.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.sbin/jail/jail.c
==============================================================================
--- stable/11/usr.sbin/jail/jail.c	Mon Jan  9 06:03:49 2017	(r311754)
+++ stable/11/usr.sbin/jail/jail.c	Mon Jan  9 06:05:57 2017	(r311755)
@@ -806,8 +806,7 @@ rdtun_params(struct cfjail *j, int dofai
 	if (jailparam_get(rtparams, nrt,
 	    bool_param(j->intparams[IP_ALLOW_DYING]) ? JAIL_DYING : 0) > 0) {
 		rtjp = rtparams + 1;
-		for (jp = j->jp, rtjp = rtparams + 1; rtjp < rtparams + nrt;
-		     jp++) {
+		for (jp = j->jp; rtjp < rtparams + nrt; jp++) {
 			if (JP_RDTUN(jp) && strcmp(jp->jp_name, "jid")) {
 				if (!((jp->jp_flags & (JP_BOOL | JP_NOBOOL)) &&
 				    jp->jp_valuelen == 0 &&



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