diff options
-rw-r--r-- | sys/kern/sys_process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index 6fc7417..dacb9d9 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -516,7 +516,7 @@ ptrace(struct thread *td, struct ptrace_args *uap) case PT_CONTINUE: case PT_DETACH: /* XXX uap->data is used even in the PT_STEP case. */ - if ((uap->req != PT_STEP) && ((unsigned)uap->data >= NSIG)) { + if (uap->req != PT_STEP && (unsigned)uap->data > _SIG_MAXSIG) { error = EINVAL; goto fail; } |