Commit 990387e1 authored by venaas's avatar venaas Committed by venaas

restricting characters in dynamic realms to valid DNS...

git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@271 e88ac4ed-0b26-0410-9574-a7f39faa03bf
parent e38e6c92
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment