From 990387e14440d988aab1850e756bdc84626b3a45 Mon Sep 17 00:00:00 2001 From: venaas Date: Mon, 2 Jun 2008 13:34:39 +0000 Subject: restricting characters in dynamic realms to valid DNS... git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@271 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- radsecproxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'radsecproxy.c') 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); -- cgit v1.1