summaryrefslogtreecommitdiffstats
path: root/src/libutil/upstream.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/upstream.c')
-rw-r--r--src/libutil/upstream.c2
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,