1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-05 18:33:12 +02:00

Fixed minor bug in resolving of IPv4 names if IPv6 is enabled (#0000659).

We were doing: T_AAAA, if that fails then T_A. But in that case when a host
has both T_A and T_AAAA entries, the reverse lookup will fail for ipv4.
Now using T_ANY to fetch both T_A and T_AAAA addresses at once.
This commit is contained in:
Bram Matthys
2003-01-24 20:34:11 +00:00
parent 73810a4f82
commit 3fc6734e65
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -1814,3 +1814,4 @@ seen. gmtime warning still there
- Added a much faster (>100x) badwords replace routine, currently disabled until it's
100% finished and more testing has been done.
- Cleanups in badwords.c.
- Fixed minor bug in resolving of IPv4 names if IPv6 is enabled (#0000659).
+2 -2
View File
@@ -564,7 +564,7 @@ static int do_query_name(Link *lp, char *name, ResRQ *rptr)
{
rptr = make_request(lp);
#ifdef INET6
rptr->type = T_AAAA;
rptr->type = T_ANY; /* Was T_AAAA: now using T_ANY so we fetch both A and AAAA -- Syzop */
#else
rptr->type = T_A;
#endif
@@ -574,7 +574,7 @@ static int do_query_name(Link *lp, char *name, ResRQ *rptr)
Debug((DEBUG_DNS, "do_query_name(): %s ", hname));
#ifndef _WIN32
#ifdef INET6
return (query_name(hname, C_IN, T_AAAA, rptr));
return (query_name(hname, C_IN, T_ANY, rptr)); /* Was T_AAAA: now using T_ANY so we fetch both A and AAAA -- Syzop */
#else
return (query_name(hname, C_IN, T_A, rptr));
#endif