Selaa lähdekoodia

[Fix] Do not crash when resolver failed to initialize

tags/1.6.1
Vsevolod Stakhov 7 vuotta sitten
vanhempi
commit
9ee06af6e5
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      contrib/librdns/resolver.c

+ 1
- 1
contrib/librdns/resolver.c Näytä tiedosto

@@ -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;
}


Loading…
Peruuta
Tallenna