]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Do not reresolve upstreams with no resolver defined
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 23 Nov 2015 09:29:41 +0000 (09:29 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 23 Nov 2015 09:29:41 +0000 (09:29 +0000)
src/libutil/upstream.c

index 5b843451f28fc10258bbfcb9c096a968a912633a..fd8debfe49d3ab6d1041b076349de2308482d38c 100644 (file)
@@ -804,7 +804,7 @@ rspamd_upstream_reresolve (struct upstream_ctx *ctx)
                up = cur->data;
                REF_RETAIN (up);
 
-               if (up->name[0] != '/') {
+               if (up->name[0] != '/' && ctx->res != NULL) {
                        if (rdns_make_request_full (ctx->res,
                                        rspamd_upstream_dns_cb,
                                        up,