git://git.exim.org
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e84957
)
driver options blocks must be mutable
author
Jeremy Harris
<jgh146exb@wizmail.org>
Thu, 13 May 2021 21:19:10 +0000
(22:19 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Sun, 27 Jun 2021 23:30:02 +0000
(
00:30
+0100)
src/src/readconf.c
patch
|
blob
|
history
diff --git
a/src/src/readconf.c
b/src/src/readconf.c
index a18cb8bbbf5cbfa40502de91356f2019710b54b2..7d1458a0867603b526a01c5c051f1e54a9bd30ce 100644
(file)
--- a/
src/src/readconf.c
+++ b/
src/src/readconf.c
@@
-3662,7
+3662,12
@@
for (driver_info * dd = drivers_available; dd->driver_name[0] != 0;
{
int len = dd->options_len;
d->info = dd;
+ {
+ int old_pool = store_pool;
+ store_pool = POOL_PERM;
d->options_block = store_get(len, FALSE);
+ store_pool = old_pool;
+ }
memcpy(d->options_block, dd->options_block, len);
for (int i = 0; i < *(dd->options_count); i++)
dd->options[i].type &= ~opt_set;