aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/smtp_proto.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmime/smtp_proto.c')
-rw-r--r--src/libmime/smtp_proto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmime/smtp_proto.c b/src/libmime/smtp_proto.c
index c9220f84a..c716b7480 100644
--- a/src/libmime/smtp_proto.c
+++ b/src/libmime/smtp_proto.c
@@ -742,7 +742,7 @@ smtp_upstream_err_socket (GError *err, void *arg)
struct smtp_session *session = arg;
msg_info ("abnormally closing connection with upstream %s, error: %s",
- session->upstream->name,
+ rspamd_upstream_name (session->upstream),
err->message);
session->error = SMTP_ERROR_UPSTREAM;
session->state = SMTP_STATE_CRITICAL_ERROR;
@@ -756,7 +756,7 @@ smtp_upstream_err_socket (GError *err, void *arg)
FALSE, TRUE)) {
return;
}
- upstream_fail (&session->upstream->up, session->session_time);
+ rspamd_upstream_fail (session->upstream);
destroy_session (session->s);
}