From: Aki Tuomi Date: Fri, 23 May 2025 18:09:02 +0000 (+0300) Subject: login-common: Copy haproxy fields to client pool X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=34642ffa6b9eeea7b7a1d16e3325059937c8186b;p=thirdparty%2Fdovecot%2Fcore.git login-common: Copy haproxy fields to client pool They are stack allocated in lib-master now. --- diff --git a/src/login-common/client-common.c b/src/login-common/client-common.c index 3aaddb7ed3..6e1dad13bd 100644 --- a/src/login-common/client-common.c +++ b/src/login-common/client-common.c @@ -311,8 +311,8 @@ int client_alloc(int fd, const struct master_service_connection *conn, /* Start by assuming this is the end client connection. Later on this can be overwritten. */ client->end_client_tls_secured = conn->haproxy.ssl; - client->local_name = conn->haproxy.hostname; - client->client_cert_common_name = conn->haproxy.cert_common_name; + client->local_name = p_strdup(client->pool, conn->haproxy.hostname); + client->client_cert_common_name = p_strdup(client->pool, conn->haproxy.cert_common_name); /* Check that alpn matches. */ if (conn->haproxy.alpn_size > 0) { const char *proto =