]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix special reply check
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 24 Jun 2018 18:03:07 +0000 (19:03 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 24 Jun 2018 18:03:07 +0000 (19:03 +0100)
src/libserver/monitored.c

index ff4e4edab06a66423ab8d7025e6e276fc0bc66d0..7928615f9796c56cce46757209f2a39aeaf1f0e3 100644 (file)
@@ -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;
                                                        }
                                                }