This patch fixes a problem where, if the NFSv4 server has a previous

unconfirmed clientid structure for the same client on the last hash list,
this old entry would not be removed/deleted. I do not think this bug would have
caused serious problems, since the new entry would have been before the old one
on the list. This old entry would have eventually been scavenged/removed.
Detected while reading the code looking for another bug.

MFC after:	3 days
This commit is contained in:
Rick Macklem 2015-07-29 23:06:30 +00:00
parent c308ef6fd2
commit 25f37276e5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=286046

View file

@ -220,7 +220,8 @@ nfsrv_setclient(struct nfsrv_descript *nd, struct nfsclient **new_clpp,
break;
}
}
i++;
if (gotit == 0)
i++;
}
if (!gotit ||
(clp->lc_flags & (LCL_NEEDSCONFIRM | LCL_ADMINREVOKED))) {