]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-ssl-iostream: Use data stack allocation for log prefix
authorAki Tuomi <aki.tuomi@open-xchange.com>
Mon, 18 Jul 2022 10:00:08 +0000 (13:00 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Mon, 18 Jul 2022 10:00:08 +0000 (13:00 +0300)
Broken in 799cafd42fd47cc3bcb57f9fa98647051ba770ba

src/lib-ssl-iostream/iostream-openssl.c

index e806faa0fbeb956de6a65df48143956fb34cee1e..3042a3ec37694f0b738ba171c24c9966082a4c72 100644 (file)
@@ -322,7 +322,7 @@ openssl_iostream_create(struct ssl_iostream_context *ctx,
                event_add_category(ssl_io->event, &event_category_ssl_server);
        if (host != NULL) {
                event_set_append_log_prefix(ssl_io->event,
-                                           i_strdup_printf("%s: ", host));
+                                           t_strdup_printf("%s: ", host));
        }
        /* bio_int will be freed by SSL_free() */
        SSL_set_bio(ssl_io->ssl, bio_int, bio_int);