]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Do not stop monitored on dns errors
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 29 Jul 2017 13:22:54 +0000 (14:22 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 29 Jul 2017 13:22:54 +0000 (14:22 +0100)
src/libutil/map.c

index edd4eaa1fc1249240954e8b8be43ee63636184ae..2e1eb5287d4feb1e999b971d8c441fc2b49f1331 100644 (file)
@@ -971,6 +971,8 @@ rspamd_map_dns_callback (struct rdns_reply *reply, void *arg)
                else {
                        /* We could not resolve host, so cowardly fail here */
                        msg_err_map ("cannot resolve %s", cbd->data->host);
+                       cbd->periodic->errored = 1;
+                       rspamd_map_periodic_callback (-1, EV_TIMEOUT, cbd->periodic);
                }
        }