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