aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}