Преглед изворни кода

check_users: still allow zero thresholds

Signed-off-by: Sven Nierlein <sven@nierlein.de>
Sven Nierlein пре 9 година
родитељ
комит
52cd7d7934
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      plugins/check_users.c

+ 2 - 2
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;