From 4456878b641d09fffca5e6d1f50e664d6fd75932 Mon Sep 17 00:00:00 2001 From: Stephan Bosch Date: Sun, 13 Jan 2019 23:34:14 +0100 Subject: [PATCH] lib-program-client: Allocate string settings on the client pool. Before, it assumed the strings to be durably allocated externally, which is very risky. --- src/lib-program-client/program-client.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.47.3