70b7b4e607
Resolves: rhbz#1723950
14 lines
553 B
Diff
14 lines
553 B
Diff
diff --git a/src/dns/dns_lookup.c b/src/dns/dns_lookup.c
|
|
index 1ea98b3..1bfeb7e 100644
|
|
--- a/src/dns/dns_lookup.c
|
|
+++ b/src/dns/dns_lookup.c
|
|
@@ -396,7 +396,7 @@ static int dns_res_search(const char *name, int class, int type,
|
|
if (keep_notfound)
|
|
/* Prepare for returning a null-padded server reply. */
|
|
memset(answer, 0, anslen);
|
|
- len = res_query(name, class, type, answer, anslen);
|
|
+ len = res_search(name, class, type, answer, anslen);
|
|
/* Begin API creep workaround. */
|
|
if (len < 0 && h_errno == 0) {
|
|
SET_H_ERRNO(TRY_AGAIN);
|