From: Vsevolod Stakhov Date: Tue, 13 Jun 2017 20:12:02 +0000 (+0100) Subject: [Fix] Do not crash when resolver failed to initialize X-Git-Tag: 1.6.1~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9ee06af6e58a973d58bb5f749eed6b97dc3fe989;p=rspamd.git [Fix] Do not crash when resolver failed to initialize --- 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; }