]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: smtp-client-connection - Fix sending second AUTH response main
authorStephan Bosch <stephan.bosch@open-xchange.com>
Tue, 30 Sep 2025 02:36:37 +0000 (04:36 +0200)
committerStephan Bosch <stephan.bosch@open-xchange.com>
Thu, 2 Oct 2025 22:41:20 +0000 (00:41 +0200)
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

index 0c48fb5393602713d5723652979d5efbcc247310..a354d330266b918523bb871dfea81be22701570b 100644 (file)
@@ -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;