Blame SOURCES/cronie-check-config-param.patch

f83704
diff -up cronie-1.4.11/anacron/readtab.c.bla cronie-1.4.11/anacron/readtab.c
f83704
--- cronie-1.4.11/anacron/readtab.c.bla	2013-07-18 14:27:08.000000000 +0200
f83704
+++ cronie-1.4.11/anacron/readtab.c	2014-01-27 17:47:41.362138084 +0100
f83704
@@ -271,7 +271,8 @@ parse_tab_line(char *line)
f83704
         if (strncmp(env_var, "START_HOURS_RANGE", 17) == 0)
f83704
         {
f83704
             r = match_rx("^([[:digit:]]+)-([[:digit:]]+)$", value, 2, &from, &to);
f83704
-            if ((r == -1) || (from == NULL) || (to == NULL)) goto reg_invalid;
f83704
+            if (r == -1) goto reg_err;
f83704
+            if (r == 0) goto reg_invalid;
f83704
             range_start = atoi(from);
f83704
             range_stop = atoi(to);
f83704
             if (range_stop < range_start) {
f83704
@@ -282,6 +283,8 @@ parse_tab_line(char *line)
f83704
         }
f83704
         if (strncmp(env_var, "RANDOM_DELAY", 12) == 0) {
f83704
             r = match_rx("^([[:digit:]]+)$", value, 0);
f83704
+            if (r == -1) goto reg_err;
f83704
+            if (r == 0) goto reg_invalid;
f83704
             if (r != -1) {
f83704
                 int i = random();
f83704
                 double x = 0;
f83704
@@ -289,7 +292,6 @@ parse_tab_line(char *line)
f83704
                 random_number = (int)x;
f83704
                 Debug(("Randomized delay set: %d", random_number));
f83704
             }
f83704
-        else goto reg_invalid;
f83704
         }
f83704
         if (strncmp(env_var, "PREFERRED_HOUR", 14) == 0) {
f83704
             r = match_rx("^([[:digit:]]+)$", value, 1, &pref_hour);