]> source.dussan.org Git - rspamd.git/commitdiff
* Fix resolving in smtp module
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 12 Jul 2010 11:24:10 +0000 (15:24 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 12 Jul 2010 11:24:10 +0000 (15:24 +0400)
src/smtp.c

index 24f03296c6ab7c13917eeb87ec3e171d587cb500..ef157f06dcaf850b94ecccf1bd2962dd001fbda1 100644 (file)
@@ -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);