[monitoring-plugins] check_users: still allow zero thresholds

Sven Nierlein <[email protected]>
Newsgroups gmane.network.nagios.cvs
Message-ID <20161107210015.20CD220083B3__21651.4309555807$1478552434$gmane$org@orwell.monitoring-plugins.org>
 Module: monitoring-plugins
 Branch: master
 Commit: 52cd7d79349489c6c4ae36f463abb9cecb9a6c31
 Author: Sven Nierlein <[email protected]>
   Date: Mon Nov  7 21:49:03 2016 +0100
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=52cd7d7

check_users: still allow zero thresholds

Signed-off-by: Sven Nierlein <[email protected]>

---

 plugins/check_users.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/check_users.c b/plugins/check_users.c
index a10249c..f6f4b36 100644
--- a/plugins/check_users.c
+++ b/plugins/check_users.c
@@ -222,9 +222,9 @@ process_arguments (int argc, char **argv)
 	/* this will abort in case of invalid ranges */
 	set_thresholds (&thlds, warning_range, critical_range);
 
-	if (thlds->warning->end <= 0)
+	if (thlds->warning->end < 0)
 		usage4 (_("Warning threshold must be a positive integer"));
-	if (thlds->critical->end <= 0)
+	if (thlds->critical->end < 0)
 		usage4 (_("Critical threshold must be a positive integer"));
 
 	return OK;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.