[exim-cvs] Allow only absolute paths in TRUSTED_CONFIG_PREFI…

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Exim Git Commits Mailing List
Data:  
Para: exim-cvs
Asunto: [exim-cvs] Allow only absolute paths in TRUSTED_CONFIG_PREFIX_LIST, fix store leak
Gitweb: http://git.exim.org/exim.git/commitdiff/1e83d68b72d24d6255d2e78facbe01656515ab4f
Commit:     1e83d68b72d24d6255d2e78facbe01656515ab4f
Parent:     fa32850be0d9e605da1b33305c122f7a59a24650
Author:     David Woodhouse <David.Woodhouse@???>
AuthorDate: Sun Dec 12 10:18:48 2010 +0000
Committer:  David Woodhouse <David.Woodhouse@???>
CommitDate: Sun Dec 12 10:18:48 2010 +0000


    Allow only absolute paths in TRUSTED_CONFIG_PREFIX_LIST, fix store leak
---
 src/src/exim.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/src/src/exim.c b/src/src/exim.c
index 9db61e2..6b82013 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
                 {