summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2021-05-13 21:59:25 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2021-06-28 00:30:02 +0100
commit2e84957ddc081264db2d49aac47504695cb4be6a (patch)
treef5da0dc6b7bb3483884e6e81619759ca022308dd
parent852645b30d28793d57dd46818011c7236c7a23ba (diff)
downloadexim4-2e84957ddc081264db2d49aac47504695cb4be6a.tar.gz
router instance must be mutable
-rw-r--r--src/src/readconf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/src/readconf.c b/src/src/readconf.c
index 0ad206172..a18cb8bbb 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;