aboutsummaryrefslogtreecommitdiffstats
path: root/src/smtp_proxy.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-04-10 15:21:59 -0700
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-04-10 15:21:59 -0700
commita17cfff9927ed129286be81c05990973139573d1 (patch)
treee28e33f0814da70063e311d4be623efb2cf7a0d6 /src/smtp_proxy.c
parented026e92854e95605f44c8469ce9fc766956386f (diff)
downloadrspamd-a17cfff9927ed129286be81c05990973139573d1.tar.gz
rspamd-a17cfff9927ed129286be81c05990973139573d1.zip
Use libucl as git submodule.
Diffstat (limited to 'src/smtp_proxy.c')
-rw-r--r--src/smtp_proxy.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/smtp_proxy.c b/src/smtp_proxy.c
index eecc50048..4d4bcf593 100644
--- a/src/smtp_proxy.c
+++ b/src/smtp_proxy.c
@@ -485,16 +485,19 @@ smtp_dnsbl_cb (struct rdns_reply *reply, void *arg)
struct smtp_proxy_session *session = arg;
const gchar *p;
gint dots = 0;
+ const struct rdns_request_name *req_name;
session->rbl_requests --;
- msg_debug ("got reply for %s: %s", rdns_request_get_name (reply->request), rdns_strerror (reply->code));
+ req_name = rdns_request_get_name (reply->request, NULL);
+
+ msg_debug ("got reply for %s: %s", req_name[0].name, rdns_strerror (reply->code));
if (session->state != SMTP_PROXY_STATE_REJECT) {
if (reply->code == RDNS_RC_NOERROR) {
/* This means that address is in dnsbl */
- p = rdns_request_get_name (reply->request);
+ p = req_name[0].name;
while (*p) {
if (*p == '.') {
dots ++;