[exim-cvs] driver options blocks must be mutable

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Exim Git Commits Mailing List
Ημερομηνία:  
Προς: exim-cvs
Αντικείμενο: [exim-cvs] driver options blocks must be mutable
Gitweb: https://git.exim.org/exim.git/commitdiff/ef619222452aa41b843468d66399bbb4e95beda3
Commit:     ef619222452aa41b843468d66399bbb4e95beda3
Parent:     2e84957ddc081264db2d49aac47504695cb4be6a
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Thu May 13 22:19:10 2021 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Mon Jun 28 00:30:02 2021 +0100


    driver options blocks must be mutable
---
 src/src/readconf.c | 5 +++++
 1 file changed, 5 insertions(+)


diff --git a/src/src/readconf.c b/src/src/readconf.c
index a18cb8b..7d1458a 100644
--- 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;