Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Commit time: 2004-10-21 23:01:06 UTC

Modified files:
     ircd/s_conf.c ChangeLog

Log message:

Test resolved host names against aconf->host, not the (NULL) aconf->name.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.497 ircu2.10/ChangeLog:1.498
--- ircu2.10/ChangeLog:1.497    Tue Oct 19 18:09:51 2004
+++ ircu2.10/ChangeLog  Thu Oct 21 16:00:55 2004
@@ -1,3 +1,8 @@
+2004-10-21  Michael Poole <[EMAIL PROTECTED]>
+
+       * ircd/s_conf.c (attach_iline): Test resolved host names against
+       aconf->host, not the (NULL) aconf->name.
+
 2004-10-19  Michael Poole <[EMAIL PROTECTED]>
 
        * include/channel.h: Move ban flags out of channel flags and
Index: ircu2.10/ircd/s_conf.c
diff -u ircu2.10/ircd/s_conf.c:1.66 ircu2.10/ircd/s_conf.c:1.67
--- ircu2.10/ircd/s_conf.c:1.66 Sun Oct 17 20:15:00 2004
+++ ircu2.10/ircd/s_conf.c      Thu Oct 21 16:00:54 2004
@@ -19,7 +19,7 @@
  */
 /** @file
  * @brief ircd configuration file driver
- * @version $Id: s_conf.c,v 1.66 2004/10/18 03:15:00 entrope Exp $
+ * @version $Id: s_conf.c,v 1.67 2004/10/21 23:00:54 entrope Exp $
  */
 #include "config.h"
 
@@ -393,7 +393,7 @@
     }
     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)
----------------------- End of diff -----------------------

Reply via email to