summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvenaas <venaas>2007-01-03 14:49:46 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2007-01-03 14:49:46 +0000
commit8cb1bdbea210d653b165cde6fa7fe7c86608d5fa (patch)
treefa0017b944b578ab5ac5b33f3630078831ebf0f3
parent7f2bfdc58f00322ac4c612445d3e9622b5d33c0b (diff)
radsrv realm routing changes
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@11 e88ac4ed-0b26-0410-9574-a7f39faa03bf
-rw-r--r--radsecproxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index e8a50bf..b34ac11 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -529,7 +529,7 @@ struct peer *radsrv(struct request *rq, char *buf, struct peer *from) {
for (i = 0; i < peer_count; i++) {
for (realm = peers[i].realms; realm; realm++) {
/* assume test@domain */
- if (!strcmp(usernameattr + 5, *realm)) {
+ if (!memcmp(usernameattr + 5, *realm, usernameattr[RAD_Attr_Length] - 5)) {
printf("found matching realm: %s, host %s\n", *realm, peers[i].host);
break;
}