From: Stephan Bosch Date: Tue, 30 Sep 2025 02:36:37 +0000 (+0200) Subject: lib-smtp: smtp-client-connection - Fix sending second AUTH response X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=HEAD;p=thirdparty%2Fdovecot%2Fcore.git 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. --- 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;