diff options
Diffstat (limited to 'sys/kern/sys_process.c')
-rw-r--r-- | sys/kern/sys_process.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index c8cf8c4..54b2423 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -392,10 +392,8 @@ ptrace(struct thread *td, struct ptrace_args *uap) return (ESRCH); } } - if (p_cansee(td, p)) { - error = ESRCH; + if ((error = p_cansee(td, p)) != 0) goto fail; - } if ((error = p_candebug(td, p)) != 0) goto fail; |