aboutsummaryrefslogtreecommitdiffstats
path: root/src/smtp.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-12 15:24:10 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-12 15:24:10 +0400
commit1c666736b83f3555f4ceb827850b5903bd0adb00 (patch)
tree17d9dfc36e5241e5dcb93b90c0b4a2fdd425363f /src/smtp.c
parent0d211727eeee45ce068e23dfdb6b4da96ba59340 (diff)
downloadrspamd-1c666736b83f3555f4ceb827850b5903bd0adb00.tar.gz
rspamd-1c666736b83f3555f4ceb827850b5903bd0adb00.zip
* Fix resolving in smtp module
Diffstat (limited to 'src/smtp.c')
-rw-r--r--src/smtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/smtp.c b/src/smtp.c
index 24f03296c..ef157f06d 100644
--- a/src/smtp.c
+++ b/src/smtp.c
@@ -831,7 +831,7 @@ accept_socket (int fd, short what, void *arg)
/* Set up async session */
session->s = new_async_session (session->pool, free_smtp_session, session);
session->state = SMTP_STATE_RESOLVE_REVERSE;
- if (! make_dns_request (session->resolver, session->s, session->pool, smtp_dns_cb, session, DNS_REQUEST_A, session->client_addr)) {
+ if (! make_dns_request (session->resolver, session->s, session->pool, smtp_dns_cb, session, DNS_REQUEST_PTR, session->client_addr)) {
msg_err ("cannot resolve %s", inet_ntoa (session->client_addr));
g_free (session);
close (nfd);