mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-29 16:44:03 +00:00
In vn_open(), unset ndp->ni_vp when returning failure so that code
which expects it to be NULL unless the return value was 0 will work. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
This commit is contained in:
parent
a11acc6f8a
commit
c579babe54
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108897
@ -271,6 +271,7 @@ vn_open_cred(ndp, flagp, cmode, cred)
|
||||
NDFREE(ndp, NDF_ONLY_PNBUF);
|
||||
vput(vp);
|
||||
*flagp = fmode;
|
||||
ndp->ni_vp = NULL;
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user