From: Jeremy Harris Date: Thu, 13 May 2021 20:59:25 +0000 (+0100) Subject: router instance must be mutable X-Git-Tag: exim-4.95-RC0~10^2~19 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/2e84957ddc081264db2d49aac47504695cb4be6a router instance must be mutable --- 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;