summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_sig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index 1edb766..469a20f 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -1053,7 +1053,7 @@ kill(td, uap)
register struct proc *p;
int error = 0;
- if (!_SIG_VALID(uap->signum))
+ if ((u_int)uap->signum >= _SIG_MAXSIG)
return (EINVAL);
mtx_lock(&Giant);
@@ -1105,7 +1105,7 @@ okillpg(td, uap)
{
int error;
- if (!_SIG_VALID(uap->signum))
+ if ((u_int)uap->signum >= _SIG_MAXSIG)
return (EINVAL);
mtx_lock(&Giant);
error = killpg1(td->td_proc, uap->signum, uap->pgid, 0);
OpenPOWER on IntegriCloud