summaryrefslogtreecommitdiffstats
path: root/sys/security
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2013-09-05 11:58:12 +0000
committerpjd <pjd@FreeBSD.org>2013-09-05 11:58:12 +0000
commit1c7defb76e774a54509fd6d99f3b65eec088b4e9 (patch)
treecd5d7fc484c0b7940676d61a8ced11ca7372517a /sys/security
parent12cfeea19a8d4e0050ea00927229c9f934e11828 (diff)
downloadFreeBSD-src-1c7defb76e774a54509fd6d99f3b65eec088b4e9.zip
FreeBSD-src-1c7defb76e774a54509fd6d99f3b65eec088b4e9.tar.gz
Handle cases where capability rights are not provided.
Reported by: kib
Diffstat (limited to 'sys/security')
-rw-r--r--sys/security/audit/audit_bsm_klib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/security/audit/audit_bsm_klib.c b/sys/security/audit/audit_bsm_klib.c
index 5f5d58b..d06c770 100644
--- a/sys/security/audit/audit_bsm_klib.c
+++ b/sys/security/audit/audit_bsm_klib.c
@@ -496,7 +496,7 @@ audit_canon_path(struct thread *td, int dirfd, char *path, char *cpath)
vhold(cvnp);
} else {
/* XXX: fgetvp() that vhold()s vnode instead of vref()ing it would be better */
- error = fgetvp(td, dirfd, 0, &cvnp);
+ error = fgetvp(td, dirfd, NULL, &cvnp);
if (error) {
cpath[0] = '\0';
if (rvnp != NULL)
OpenPOWER on IntegriCloud