aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/librdns
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-13 21:12:02 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-13 21:12:02 +0100
commit9ee06af6e58a973d58bb5f749eed6b97dc3fe989 (patch)
treed10dc077bb0461a6388599cfbe2f7d4c29ae8834 /contrib/librdns
parent12aeaa15c77b65b09d1f065f2cb89dfb781f92c9 (diff)
downloadrspamd-9ee06af6e58a973d58bb5f749eed6b97dc3fe989.tar.gz
rspamd-9ee06af6e58a973d58bb5f749eed6b97dc3fe989.zip
[Fix] Do not crash when resolver failed to initialize
Diffstat (limited to 'contrib/librdns')
-rw-r--r--contrib/librdns/resolver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/librdns/resolver.c b/contrib/librdns/resolver.c
index d6ddea576..ca93d7872 100644
--- a/contrib/librdns/resolver.c
+++ b/contrib/librdns/resolver.c
@@ -530,7 +530,7 @@ rdns_make_request_full (
const char *cur_name, *last_name = NULL;
struct rdns_compression_entry *comp = NULL;
- if (!resolver->initialized) {
+ if (resolver == NULL || !resolver->initialized) {
return NULL;
}