Run alert hooks based on the options rather than unconditionally, from

Brad Town.
This commit is contained in:
nicm
2017-08-23 09:14:21 +00:00
parent bbe9da063e
commit e1b3dc89d2
2 changed files with 48 additions and 44 deletions

View File

@ -191,7 +191,7 @@ args_print(struct args *args)
int
args_has(struct args *args, u_char ch)
{
return (args_find(args, ch) == NULL ? 0 : 1);
return (args_find(args, ch) != NULL);
}
/* Set argument value in the arguments tree. */