Skip to content

Commit

Permalink
lib-smtp: client: Make clear that XCLIENT is not sent if the server h…
Browse files Browse the repository at this point in the history
…as no support.
  • Loading branch information
stephanbosch committed Mar 2, 2018
1 parent c52e5e6 commit fbd0a83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib-smtp/smtp-client-connection.c
Expand Up @@ -628,7 +628,8 @@ smtp_client_connection_send_xclient(struct smtp_client_connection *conn,

if (!conn->set.peer_trusted)
return;
if (conn->cap_xclient_args == NULL)
if ((conn->capabilities & SMTP_CAPABILITY_XCLIENT) == 0 ||
conn->cap_xclient_args == NULL)
return;

str = t_str_new(64);
Expand Down

0 comments on commit fbd0a83

Please sign in to comment.