summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;