summaryrefslogtreecommitdiff
path: root/radsecproxy.c
diff options
context:
space:
mode:
authorvenaas <venaas>2007-01-03 15:29:31 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2007-01-03 15:29:31 +0000
commited7a4b2f1d9855cfbd73fa7cf30b2b811e9d2caf (patch)
tree6d93b542ed01b800e7035e94f94546677733092b /radsecproxy.c
parentecb8dc6b2ea0685293878321ab4c9fd558ce1fb6 (diff)
radsrv realm routing changes
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@18 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 9ab9d81..bbecffb 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -479,7 +479,7 @@ struct peer *id2peer(char *id, uint8_t len) {
for (realm = peers[i].realms; *realm; realm++) {
/* assume test@domain */
printf("realmlength %d, usernamelenght %d\n", strlen(*realm), len);
- if (strlen(*realm) == len && !memcmp(id + 5, *realm, len - 5)) {
+ if (strlen(*realm) == len - 5 && !memcmp(id + 5, *realm, len - 5)) {
printf("found matching realm: %s, host %s\n", *realm, peers[i].host);
return peers + i;
}