Skip to content

Commit

Permalink
lib-smtp: smtp-client-connection - Retain the host name in the connec…
Browse files Browse the repository at this point in the history
…tion label after DNS lookup.
  • Loading branch information
stephanbosch committed Mar 1, 2019
1 parent 1ff79ad commit 95b3b93
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib-smtp/smtp-client-connection.c
Expand Up @@ -1488,6 +1488,9 @@ static void
smtp_client_connection_connect_next_ip(struct smtp_client_connection *conn)
{
const struct ip_addr *ip, *my_ip = &conn->set.my_ip;
const char *conn_name = (conn->host_is_ip ? NULL :
t_strdup_printf("%s:%u", conn->host,
conn->port));

timeout_remove(&conn->to_connect);

Expand All @@ -1503,7 +1506,7 @@ smtp_client_connection_connect_next_ip(struct smtp_client_connection *conn)
}

connection_init_client_ip_from(conn->client->conn_list, &conn->conn,
NULL, ip, conn->port, my_ip);
conn_name, ip, conn->port, my_ip);

smtp_client_connection_do_connect(conn);
}
Expand Down

0 comments on commit 95b3b93

Please sign in to comment.