Allow only absolute paths in TRUSTED_CONFIG_PREFIX_LIST, fix store leak
authorDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 12 Dec 2010 10:18:48 +0000 (10:18 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 12 Dec 2010 10:18:48 +0000 (10:18 +0000)
src/src/exim.c

index 9db61e2a9e30f135c4cde7483f5ca7b1e7fced56..6b82013f879979c4529d4cd57797e3eaf417b71a 100644 (file)
@@ -1888,7 +1888,7 @@ for (i = 1; i < argc; i++)
                 uschar *start = big_buffer, *nl;
                 while (*start && isspace(*start))
                 start++;
-                if (*start == '#')
+                if (*start != '/')
                   continue;
                 nl = Ustrchr(start, '\n');
                 if (nl)
@@ -1920,6 +1920,7 @@ for (i = 1; i < argc; i++)
                     break;
                     }
                   }
+                store_reset(reset_point);
                 }
               else
                 {