1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-05 18:05:16 +00:00

On MAC check failure for readdir, use 'goto out' to use the common exit

handling, rather than returning directly to prevent leaking of vnode
reference/lock.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, NAI Labs
This commit is contained in:
Robert Watson 2002-08-15 15:46:10 +00:00
parent 6c62b0477e
commit 6835e7427c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101924

View File

@ -316,7 +316,7 @@ again:
#ifdef MAC
error = mac_check_vnode_readdir(td->td_ucred, vp);
if (error)
return (error);
goto out;
#endif
error = VOP_READDIR(vp, &auio, fp->f_cred, &eofflag,