summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/security/audit/audit_syscalls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/security/audit/audit_syscalls.c b/sys/security/audit/audit_syscalls.c
index ee8e801..7b7cb0e 100644
--- a/sys/security/audit/audit_syscalls.c
+++ b/sys/security/audit/audit_syscalls.c
@@ -317,7 +317,7 @@ auditon(struct thread *td, struct auditon_args *uap)
return (ESRCH);
if ((tp = pfind(udata.au_aupinfo.ap_pid)) == NULL)
return (ESRCH);
- if ((error = p_cansee(td, tp)) != 0)
+ if ((error = p_cansee(td, tp)) != 0) {
PROC_UNLOCK(tp);
return (error);
}
@@ -348,7 +348,7 @@ auditon(struct thread *td, struct auditon_args *uap)
crfree(newcred);
return (ESRCH);
}
- if ((error = p_cansee(td, tp)) != 0)
+ if ((error = p_cansee(td, tp)) != 0) {
PROC_UNLOCK(tp);
crfree(newcred);
return (error);
OpenPOWER on IntegriCloud