mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-30 08:19:09 +00:00
Don't assign rtjp twice.
Reported by: clang static analyzer MFC after: 2 weeks
This commit is contained in:
parent
34311568dc
commit
760f2905be
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=310614
@ -806,8 +806,7 @@ rdtun_params(struct cfjail *j, int dofail)
|
||||
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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user