diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2021-05-13 22:19:10 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2021-06-28 00:30:02 +0100 |
commit | ef619222452aa41b843468d66399bbb4e95beda3 (patch) | |
tree | 003c2016a11afc5d96c80a9a6bfb5205d4821a3b /src | |
parent | 2e84957ddc081264db2d49aac47504695cb4be6a (diff) |
driver options blocks must be mutable
Diffstat (limited to 'src')
-rw-r--r-- | src/src/readconf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/src/readconf.c b/src/src/readconf.c index a18cb8bbb..7d1458a08 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; |