Skip to content

Commit

Permalink
lib-smtp: server: connection: Properly handle a multi-line reason in …
Browse files Browse the repository at this point in the history
…smtp_server_connection_disconnect().

Convert it to a single line string.
  • Loading branch information
stephanbosch authored and villesavolainen committed Feb 12, 2019
1 parent 673327c commit c4fd34b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib-smtp/smtp-server-connection.c
Expand Up @@ -1111,6 +1111,8 @@ smtp_server_connection_disconnect(struct smtp_server_connection *conn,

if (reason == NULL)
reason = smtp_server_connection_get_disconnect_reason(conn);
else
reason = t_str_oneline(reason);
smtp_server_connection_debug(conn, "Disconnected: %s", reason);
conn->disconnect_reason = i_strdup(reason);

Expand Down

0 comments on commit c4fd34b

Please sign in to comment.