(dns_lookup_int): if we have res_ndestroy, prefeer that before res_nclose
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15945 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -534,7 +534,11 @@ dns_lookup_int(const char *domain, int rr_class, int rr_type)
|
||||
}
|
||||
if (len < 0) {
|
||||
#ifdef HAVE_RES_NSEARCH
|
||||
#ifdef HAVE_RES_NDESTROY
|
||||
res_ndestroy(&state);
|
||||
#else
|
||||
res_nclose(&state);
|
||||
#endif
|
||||
#endif
|
||||
free(reply);
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user