From 8203d307f6c56f97f3cf29996d8f2a648b0a296c Mon Sep 17 00:00:00 2001 From: Stephan Bosch Date: Tue, 30 Sep 2025 04:36:37 +0200 Subject: [PATCH] lib-smtp: smtp-client-connection - Fix sending second AUTH response Due to a copy-paste error it was again using the now freed sasl_ir field for composing the response. --- src/lib-smtp/smtp-client-connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib-smtp/smtp-client-connection.c b/src/lib-smtp/smtp-client-connection.c index 0c48fb5393..a354d33026 100644 --- a/src/lib-smtp/smtp-client-connection.c +++ b/src/lib-smtp/smtp-client-connection.c @@ -816,7 +816,7 @@ smtp_client_connection_auth_cb(const struct smtp_reply *reply, cmd = smtp_client_command_new( conn, SMTP_CLIENT_COMMAND_FLAG_PRELOGIN, smtp_client_connection_auth_cb, conn); - smtp_client_command_write(cmd, conn->sasl_ir); + smtp_client_command_write(cmd, str_c(smtp_output)); smtp_client_command_submit_after(cmd, cmd_auth); conn->cmd_auth = cmd; return; -- 2.47.3