router instance must be mutable
authorJeremy Harris <jgh146exb@wizmail.org>
Thu, 13 May 2021 20:59:25 +0000 (21:59 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Sun, 27 Jun 2021 23:30:02 +0000 (00:30 +0100)
src/src/readconf.c

index 0ad206172d4baa661cf5cfbcb6e764e66a029983..a18cb8bbbf5cbfa40502de91356f2019710b54b2 100644 (file)
@@ -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;