From ab6c598f278afa9d5afb1a93089adcfc91d8003b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 24 Jun 2018 19:03:07 +0100 Subject: [Minor] Fix special reply check --- src/libserver/monitored.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libserver/monitored.c b/src/libserver/monitored.c index ff4e4edab..7928615f9 100644 --- a/src/libserver/monitored.c +++ b/src/libserver/monitored.c @@ -304,7 +304,7 @@ rspamd_monitored_dns_cb (struct rdns_reply *reply, void *arg) LL_FOREACH (reply->entries, cur) { if (cur->type == RDNS_REQUEST_A) { if ((guint32)cur->content.a.addr.s_addr == - INADDR_LOOPBACK) { + htonl (INADDR_LOOPBACK)) { is_special_reply = TRUE; } } -- cgit v1.2.3