From 423292b351052224c9477664b8d77ed1be3bd098 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Sat, 12 Nov 2005 19:32:26 +0000 Subject: [PATCH] Allow a (single) CNAME follow when doing A and AAAA lookups. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1541 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 5 +++++ ircd/ircd_res.c | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3507aaa..9273ccd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-11-11 Michael Poole + + * ircd/ircd_res.c (proc_answer): Follow CNAME when doing A + and AAAA lookups as well as PTR. + 2005-11-07 Michael Poole * ircd/channel.c (mode_parse_client): Allow clients to specify diff --git a/ircd/ircd_res.c b/ircd/ircd_res.c index 6467aba..52d6865 100644 --- a/ircd/ircd_res.c +++ b/ircd/ircd_res.c @@ -706,9 +706,6 @@ proc_answer(struct reslist *request, HEADER* header, char* buf, char* eob) break; case T_CNAME: /* first check we already haven't started looking into a cname */ - if (request->type != T_PTR) - return(0); - if (request->state == REQ_CNAME) { n = irc_dn_expand((unsigned char *)buf, (unsigned char *)eob, -- 2.20.1