summaryrefslogtreecommitdiff
path: root/radsecproxy.c
diff options
context:
space:
mode:
authorvenaas <venaas>2007-01-03 14:58:25 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2007-01-03 14:58:25 +0000
commit8cfacf01c02e4fc7d14d3e30a7dce00ef2e83e0c (patch)
tree316f47578593ba84e7f761d228d030b7b5832ae5 /radsecproxy.c
parentd77cd69ead5f587ed85fb7b4e1190c9f1ab9743a (diff)
radsrv realm routing changes
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@13 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 d480b5d..399ef78 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -527,7 +527,7 @@ struct peer *radsrv(struct request *rq, char *buf, struct peer *from) {
i = peer_count;
for (i = 0; i < peer_count; i++) {
- for (realm = peers[i].realms; realm; realm++) {
+ for (realm = peers[i].realms; *realm; realm++) {
/* assume test@domain */
if (strlen(*realm) == usernameattr[RAD_Attr_Length] - 5 && !memcmp(usernameattr + 5, *realm, strlen(*realm))) {
printf("found matching realm: %s, host %s\n", *realm, peers[i].host);