Due to a copy-paste error it was again using the now freed sasl_ir field for
composing the response.
cmd = smtp_client_command_new(
conn, SMTP_CLIENT_COMMAND_FLAG_PRELOGIN,
smtp_client_connection_auth_cb, conn);
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;
smtp_client_command_submit_after(cmd, cmd_auth);
conn->cmd_auth = cmd;
return;