Skip to content

Commit

Permalink
Don't do CNAME lookups ( see https://lists.gt.net/qmail/users/138190 ).
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Dec 26, 2018
1 parent 9811ad8 commit e574051
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions dns.c
Expand Up @@ -207,32 +207,7 @@ int flagsearch;
int dns_cname(sa)
stralloc *sa;
{
int r;
int loop;
for (loop = 0;loop < 10;++loop)
{
if (!sa->len) return loop;
if (sa->s[sa->len - 1] == ']') return loop;
if (sa->s[sa->len - 1] == '.') { --sa->len; continue; }
switch(resolve(sa,T_CNAME))
{
case DNS_MEM: return DNS_MEM;
case DNS_SOFT: return DNS_SOFT;
case DNS_HARD: return loop;
default:
while ((r = findname(T_CNAME)) != 2)
{
if (r == DNS_SOFT) return DNS_SOFT;
if (r == 1)
{
if (!stralloc_copys(sa,name)) return DNS_MEM;
break;
}
}
if (r == 2) return loop;
}
}
return DNS_HARD; /* alias loop */
return 0;
}

#define FMT_IAA 40
Expand Down

0 comments on commit e574051

Please sign in to comment.