Don't expect host to never be NULL, part 2.

pull/84/head
Martin Lambers 4 months ago
parent ab23ba9a64
commit c7d4aec45a
  1. 8
      src/msmtp.c

@ -283,8 +283,8 @@ int msmtp_rmqs(account_t *acc, int debug, const char *rmqs_argument,
msmtp_endsession(&srv, 1);
return EX_UNAVAILABLE;
}
if ((e = smtp_auth(&srv, acc->host, acc->port,
acc->username, acc->password,
if ((e = smtp_auth(&srv, acc->host ? acc->host : acc->socketname,
acc->port, acc->username, acc->password,
acc->ntlmdomain, acc->auth_mech,
msmtp_password_callback, msg, errstr))
!= SMTP_EOK)
@ -1465,8 +1465,8 @@ int msmtp_sendmail(account_t *acc, list_t *recipients,
e = EX_UNAVAILABLE;
return e;
}
if ((e = smtp_auth(&srv, acc->host, acc->port,
acc->username, acc->password,
if ((e = smtp_auth(&srv, acc->host ? acc->host : acc->socketname,
acc->port, acc->username, acc->password,
acc->ntlmdomain, acc->auth_mech,
msmtp_password_callback, msg, errstr))
!= SMTP_EOK)

Loading…
Cancel
Save