[exim-cvs] router instance must be mutable

Góra strony
Delete this message
Reply to this message
Autor: Exim Git Commits Mailing List
Data:  
Dla: exim-cvs
Temat: [exim-cvs] router instance must be mutable
Gitweb: https://git.exim.org/exim.git/commitdiff/2e84957ddc081264db2d49aac47504695cb4be6a
Commit:     2e84957ddc081264db2d49aac47504695cb4be6a
Parent:     852645b30d28793d57dd46818011c7236c7a23ba
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Thu May 13 21:59:25 2021 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Mon Jun 28 00:30:02 2021 +0100


    router instance must be mutable
---
 src/src/readconf.c | 5 +++++
 1 file changed, 5 insertions(+)


diff --git a/src/src/readconf.c b/src/src/readconf.c
index 0ad2061..a18cb8b 100644
--- a/src/src/readconf.c
+++ b/src/src/readconf.c
@@ -3775,7 +3775,12 @@ while ((buffer = get_config_line()))
     /* Set up a new driver instance data block on the chain, with
     its default values installed. */


+  {
+  int old_pool = store_pool;
+  if (Ustrncmp(class, "router", 7) == 0) store_pool = POOL_PERM;
     d = store_get(instance_size, FALSE);
+  store_pool = old_pool;
+  }
     memcpy(d, instance_default, instance_size);
     *p = d;
     p = &d->next;