Test resolved host names against aconf->host, not the (NULL) aconf->name.
authorMichael Poole <mdpoole@troilus.org>
Thu, 21 Oct 2004 23:00:55 +0000 (23:00 +0000)
committerMichael Poole <mdpoole@troilus.org>
Thu, 21 Oct 2004 23:00:55 +0000 (23:00 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1254 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/s_conf.c

index 78d1f68839c77d10be579c35ad8931a71b020ca0..892744b8a40ee403bb87a0142ccdbd556398e78e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-10-21  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/s_conf.c (attach_iline): Test resolved host names against
+       aconf->host, not the (NULL) aconf->name.
+
 2004-10-19  Michael Poole <mdpoole@troilus.org>
 
        * include/channel.h: Move ban flags out of channel flags and
index c4516b3c9e13e561222e65e2e901121a1840efd2..160b4e008230b450f49f8f90ec70b244c71b71f4 100644 (file)
@@ -393,7 +393,7 @@ enum AuthorizationCheckResult attach_iline(struct Client* cptr)
     }
     if (hp) {
       Debug((DEBUG_DNS, "a_il: %s->%s", cli_sockhost(cptr), hp->h_name));
-      if (!match(aconf->name, hp->h_name))
+      if (!match(aconf->host, hp->h_name))
         return check_limit_and_attach(cptr, aconf);
     }
     if ((aconf->addrbits >= 0)