diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-23 09:29:41 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-23 09:29:41 +0000 |
commit | 6a915b7a5c0424514d32d671a272236b10c75604 (patch) | |
tree | 0104af0f1f84804df519710fe72976c30221a42f /src/libutil/upstream.c | |
parent | 0677cd445197fa1ea202b276561b735c903f8c50 (diff) | |
download | rspamd-6a915b7a5c0424514d32d671a272236b10c75604.tar.gz rspamd-6a915b7a5c0424514d32d671a272236b10c75604.zip |
Do not reresolve upstreams with no resolver defined
Diffstat (limited to 'src/libutil/upstream.c')
-rw-r--r-- | src/libutil/upstream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/upstream.c b/src/libutil/upstream.c index 5b843451f..fd8debfe4 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, |