]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Fixed validation of server names containing digits.
authorAlexander Barton <alex@barton.de>
Fri, 10 Nov 2006 10:05:00 +0000 (10:05 +0000)
committerAlexander Barton <alex@barton.de>
Fri, 10 Nov 2006 10:05:00 +0000 (10:05 +0000)
ChangeLog
src/ngircd/conf.c

index 2ca750adfaeb5518880778fd04b3d0a9aefd8844..8bf28ed8069ad9f474fc068c33cbe1efa192443a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,7 @@
 
 ngIRCd HEAD
 
+  - Fixed validation of server names containing digits.
   - Update info text of local server after re-reading configuration.
   - Changed Numerics 265 and 266 to follow ircd 2.11.x "standards".
   - Allow PASS syntax defined in RFC 1459 for server links, too.
@@ -670,4 +671,4 @@ ngIRCd 0.0.1, 31.12.2001
 
 
 -- 
-$Id: ChangeLog,v 1.309 2006/11/05 13:03:46 fw Exp $
+$Id: ChangeLog,v 1.310 2006/11/10 10:05:00 alex Exp $
index 5e9e72be20aa069d844ae0044758c8a8791a55da..b54c3f15feaf893608a5e17d563dd7d69b690445 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: conf.c,v 1.94 2006/11/05 13:03:48 fw Exp $";
+static char UNUSED id[] = "$Id: conf.c,v 1.95 2006/11/10 10:05:08 alex Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -975,7 +975,7 @@ Validate_Config(bool Configtest, bool Rehash)
        do {
                if (*ptr >= 'a' && *ptr <= 'z') continue;
                if (*ptr >= 'A' && *ptr <= 'Z') continue;
-               if (*ptr >= '1' && *ptr <= '0') continue;
+               if (*ptr >= '0' && *ptr <= '9') continue;
                if (ptr > Conf_ServerName) {
                        if (*ptr == '.' || *ptr == '-')
                                continue;