One more use for _SIG_VALID.
Submitted by: Garrett Cooper <yanegomi gmail com> MFC after: 1 week
This commit is contained in:
parent
b144e48b2a
commit
a29af74b70
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209934
@ -633,7 +633,7 @@ db_kill(dummy1, dummy2, dummy3, dummy4)
|
||||
if (!db_expression(&pid))
|
||||
DB_ERROR(("Missing process ID\n"));
|
||||
db_skip_to_eol();
|
||||
if (sig < 1 || sig > _SIG_MAXSIG)
|
||||
if (!_SIG_VALID(sig))
|
||||
DB_ERROR(("Signal number out of range\n"));
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user