svn commit: r311755 - stable/11/usr.sbin/jail
Xin LI
delphij at FreeBSD.org
Mon Jan 9 06:05:59 UTC 2017
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 &&
More information about the svn-src-stable
mailing list