My commit
3a7963704c519 broke compilation without HAVE_IPv6. Rework.
the final "nothing found" result, but carry on to the next domain. */
found = domain;
the final "nothing found" result, but carry on to the next domain. */
found = domain;
if (type == T_APL) /* NB cannot happen unless HAVE_IPV6 */
{
if (type == T_APL) /* NB cannot happen unless HAVE_IPV6 */
{
-#if HAVE_IPV6 && defined(SUPPORT_A6)
- if (searchtype == T_APL) searchtype = T_A6;
-#endif
-#if HAVE_IPV6 && !defined(SUPPORT_A6)
- if (searchtype == T_APL) searchtype = T_AAAA;
-#endif
+ if (searchtype == T_APL)
+# if defined(SUPPORT_A6)
+ searchtype = T_A6;
+# else
+ searchtype = T_AAAA;
+# endif
else if (searchtype == T_A6) searchtype = T_AAAA;
else if (searchtype == T_AAAA) searchtype = T_A;
rc = dns_special_lookup(&dnsa, domain, searchtype, &found);
}
else
else if (searchtype == T_A6) searchtype = T_AAAA;
else if (searchtype == T_AAAA) searchtype = T_A;
rc = dns_special_lookup(&dnsa, domain, searchtype, &found);
}
else
rc = dns_special_lookup(&dnsa, domain, type, &found);
if (rc == DNS_NOMATCH || rc == DNS_NODATA) continue;
rc = dns_special_lookup(&dnsa, domain, type, &found);
if (rc == DNS_NOMATCH || rc == DNS_NODATA) continue;