diff options
| author | Alexander Barton <alex@barton.de> | 2006-11-10 10:05:00 +0000 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2006-11-10 10:05:00 +0000 |
| commit | 5b35b101f2c5a208c94840e3b020f50d8c91b64f (patch) | |
| tree | f884bf8ba74b8201fff1a1215f378bc30ca41a9c /src | |
| parent | 058d3085a955ae9385a27b6b33ee173b5d95fdfa (diff) | |
| download | ngircd-5b35b101f2c5a208c94840e3b020f50d8c91b64f.tar.gz ngircd-5b35b101f2c5a208c94840e3b020f50d8c91b64f.zip | |
Fixed validation of server names containing digits.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/conf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index 5e9e72be..b54c3f15 100644 --- a/src/ngircd/conf.c +++ b/src/ngircd/conf.c @@ -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; |