diff options
author | venaas <venaas> | 2007-05-15 14:39:25 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2007-05-15 14:39:25 +0000 |
commit | c146bb93704d4c73c11af606d52f564b1e174907 (patch) | |
tree | a19fa3a051c5f9bd8dc00b1bc38b772c5f611c89 | |
parent | 30f769abe5088382626d352e703dfad5920ce259 (diff) |
added debugging to regexp code
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@89 e88ac4ed-0b26-0410-9574-a7f39faa03bf
-rw-r--r-- | radsecproxy.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/radsecproxy.c b/radsecproxy.c index b074fc0..c06e57a 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -1019,8 +1019,10 @@ struct server *id2server(char *id, uint8_t len) { #else int i; for (i = 0; i < realm_count; i++) - if (!regexec(&realms[i].regex, id, 0, NULL, 0)) + if (!regexec(&realms[i].regex, id, 0, NULL, 0)) { + debug(DBG_DBG, "found matching realm: %s, host %s", realms[i].name, realms[i].server->peer.host); return realms[i].server; + } return NULL; #endif } |