From: Stephan Bosch Date: Sun, 13 Jan 2019 22:34:14 +0000 (+0100) Subject: lib-program-client: Allocate string settings on the client pool. X-Git-Tag: 2.3.10~100 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4456878b641d09fffca5e6d1f50e664d6fd75932;p=thirdparty%2Fdovecot%2Fcore.git lib-program-client: Allocate string settings on the client pool. Before, it assumed the strings to be durably allocated externally, which is very risky. --- diff --git a/src/lib-program-client/program-client.c b/src/lib-program-client/program-client.c index cb45445cd5..26870500ed 100644 --- a/src/lib-program-client/program-client.c +++ b/src/lib-program-client/program-client.c @@ -468,6 +468,9 @@ void program_client_init(struct program_client *pclient, pool_t pool, if (args != NULL) pclient->args = p_strarray_dup(pool, args); pclient->set = *set; + pclient->set.dns_client_socket_path = + p_strdup(pool, set->dns_client_socket_path); + pclient->set.home = p_strdup(pool, set->home); pclient->debug = set->debug; pclient->fd_in = -1; pclient->fd_out = -1;