Blame SOURCES/postfix-3.3.1-ref-search-fix.patch

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