diff options
author | pjd <pjd@FreeBSD.org> | 2013-09-05 11:58:12 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2013-09-05 11:58:12 +0000 |
commit | 1c7defb76e774a54509fd6d99f3b65eec088b4e9 (patch) | |
tree | cd5d7fc484c0b7940676d61a8ced11ca7372517a /sys/cddl/compat | |
parent | 12cfeea19a8d4e0050ea00927229c9f934e11828 (diff) | |
download | FreeBSD-src-1c7defb76e774a54509fd6d99f3b65eec088b4e9.zip FreeBSD-src-1c7defb76e774a54509fd6d99f3b65eec088b4e9.tar.gz |
Handle cases where capability rights are not provided.
Reported by: kib
Diffstat (limited to 'sys/cddl/compat')
-rw-r--r-- | sys/cddl/compat/opensolaris/sys/file.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cddl/compat/opensolaris/sys/file.h b/sys/cddl/compat/opensolaris/sys/file.h index a1c1d45..5f83082 100644 --- a/sys/cddl/compat/opensolaris/sys/file.h +++ b/sys/cddl/compat/opensolaris/sys/file.h @@ -54,7 +54,7 @@ releasef(int fd) struct file *fp; /* No CAP_ rights required, as we're only releasing. */ - if (fget(curthread, fd, 0, &fp) == 0) { + if (fget(curthread, fd, NULL, &fp) == 0) { fdrop(fp, curthread); fdrop(fp, curthread); } |