Skip to content

Commit

Permalink
lib-smtp: client: Always use per-connection settings in connection.
Browse files Browse the repository at this point in the history
Some part of the connection code referred to global client settings.
  • Loading branch information
stephanbosch authored and villesavolainen committed Feb 5, 2018
1 parent b75ddaf commit 520f546
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib-smtp/smtp-client-connection.c
Expand Up @@ -249,7 +249,7 @@ smtp_client_command_timeout(struct smtp_client_connection *conn)
void smtp_client_connection_start_cmd_timeout(
struct smtp_client_connection *conn)
{
unsigned int msecs = conn->client->set.command_timeout_msecs;
unsigned int msecs = conn->set.command_timeout_msecs;

if (conn->state != SMTP_CLIENT_CONNECTION_STATE_READY) {
/* pre-login uses connect timeout */
Expand Down Expand Up @@ -277,7 +277,7 @@ void smtp_client_connection_start_cmd_timeout(
void smtp_client_connection_update_cmd_timeout(
struct smtp_client_connection *conn)
{
unsigned int msecs = conn->client->set.command_timeout_msecs;
unsigned int msecs = conn->set.command_timeout_msecs;

if (conn->state != SMTP_CLIENT_CONNECTION_STATE_READY) {
/* pre-login uses connect timeout */
Expand Down

0 comments on commit 520f546

Please sign in to comment.