Modify nfsvno_fhtovp() to ensure that it always sets the credp
argument. Returning without credp set could result in a caller doing crfree() on garbage. Reviewed by: kan Approved by: kib (mentor)
This commit is contained in:
parent
56916f026c
commit
70839889c6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=191998
@ -2422,6 +2422,7 @@ nfsvno_fhtovp(struct mount *mp, fhandle_t *fhp, struct sockaddr *nam,
|
||||
int error;
|
||||
int numsecflavor, *secflavors;
|
||||
|
||||
*credp = NULL;
|
||||
error = VFS_FHTOVP(mp, &fhp->fh_fid, vpp);
|
||||
if (nam && !error) {
|
||||
error = VFS_CHECKEXP(mp, nam, &exp->nes_exflag, credp,
|
||||
|
Loading…
Reference in New Issue
Block a user