diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2021-05-13 21:31:16 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2021-06-28 00:30:02 +0100 |
commit | 852645b30d28793d57dd46818011c7236c7a23ba (patch) | |
tree | 8ec98ca5b95afed7bbc3f2361c206e8cf2a37c20 /src | |
parent | d56e798eb66ac044ff22f0daa2185549f5d49632 (diff) |
namedlist_block has to be allocated mutably, to cache lookups
paniclog from 5 - subprocess crashes
Diffstat (limited to 'src')
-rw-r--r-- | src/src/readconf.c | 7 |
1 files changed, 6 insertions, 1 deletions
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) { |