summaryrefslogtreecommitdiff
path: root/radsecproxy.c
diff options
context:
space:
mode:
authorvenaas <venaas>2008-06-02 13:34:39 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2008-06-02 13:34:39 +0000
commit990387e14440d988aab1850e756bdc84626b3a45 (patch)
treeb086bd32334cd011e54ee2418d3f387a38f2e709 /radsecproxy.c
parente38e6c92bf7be07aa571670a33d4e2ff3dd5fd2c (diff)
restricting characters in dynamic realms to valid DNS...
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@271 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.c')
-rw-r--r--radsecproxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index 07811ec..5802b1f 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -2842,7 +2842,7 @@ void adddynamicrealmserver(struct realm *realm, struct clsrvconf *conf, char *id
if (!*realmname)
return;
for (s = realmname; *s; s++)
- if (*s != '-' && !isalnum(*s))
+ if (*s != '.' && *s != '-' && !isalnum(*s))
return;
pthread_mutex_lock(&realm->subrealms_mutex);