From 1e83d68b72d24d6255d2e78facbe01656515ab4f Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Sun, 12 Dec 2010 10:18:48 +0000 Subject: [PATCH] Allow only absolute paths in TRUSTED_CONFIG_PREFIX_LIST, fix store leak --- src/src/exim.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/src/exim.c b/src/src/exim.c index 9db61e2a9..6b82013f8 100644 --- a/src/src/exim.c +++ b/src/src/exim.c @@ -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 { -- 2.25.1