diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2021-05-13 21:59:25 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2021-06-28 00:30:02 +0100 |
commit | 2e84957ddc081264db2d49aac47504695cb4be6a (patch) | |
tree | f5da0dc6b7bb3483884e6e81619759ca022308dd /src | |
parent | 852645b30d28793d57dd46818011c7236c7a23ba (diff) |
router instance must be mutable
Diffstat (limited to 'src')
-rw-r--r-- | src/src/readconf.c | 5 |
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; |