From 852645b30d28793d57dd46818011c7236c7a23ba Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Thu, 13 May 2021 21:31:16 +0100 Subject: [PATCH] namedlist_block has to be allocated mutably, to cache lookups paniclog from 5 - subprocess crashes --- src/src/readconf.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/src/readconf.c b/src/src/readconf.c index 4602dd262..0ad206172 100644 --- a/src/src/readconf.c +++ b/src/src/readconf.c @@ -3011,7 +3011,12 @@ read_named_list(tree_node **anchorp, int *numberp, int max, uschar *s, BOOL forcecache = FALSE; uschar *ss; tree_node *t; -namedlist_block * nb = store_get(sizeof(namedlist_block), FALSE); +int old_pool = store_pool; +namedlist_block * nb; + +store_pool = POOL_PERM; +nb = store_get(sizeof(namedlist_block), FALSE); +store_pool = old_pool; if (Ustrncmp(s, "_cache", 6) == 0) { -- 2.30.2