aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libutil/map.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/map.c b/src/libutil/map.c
index edd4eaa1f..2e1eb5287 100644
--- a/src/libutil/map.c
+++ b/src/libutil/map.c
@@ -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);
}
}