Unbreak the build.

Pointy hat to:	kevlo
This commit is contained in:
des 2008-09-04 13:06:36 +00:00
parent 92fbe03257
commit b5bc5d965b

View File

@ -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);