From: Vsevolod Stakhov Date: Mon, 23 Nov 2015 09:29:41 +0000 (+0000) Subject: Do not reresolve upstreams with no resolver defined X-Git-Tag: 1.1.0~506 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6a915b7a5c0424514d32d671a272236b10c75604;p=thirdparty%2Frspamd.git Do not reresolve upstreams with no resolver defined --- diff --git a/src/libutil/upstream.c b/src/libutil/upstream.c index 5b843451f2..fd8debfe49 100644 --- a/src/libutil/upstream.c +++ b/src/libutil/upstream.c @@ -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,