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

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