diff options
author | Linus Nordberg <linus@nordberg.se> | 2015-01-14 14:55:31 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2015-01-14 14:55:31 +0100 |
commit | 4e3627f01c1a62cad621a15f03a26ef84acb7609 (patch) | |
tree | 1c27d58a5346ea88515c5fc435996dbca665b980 | |
parent | 4b41cda616a176b9f8a7ad86295a852840ca83c7 (diff) |
Have rewriteIn for servers use the correct config section.
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | radsecproxy.c | 5 |
2 files changed, 11 insertions, 3 deletions
@@ -1,4 +1,11 @@ -Changes between 1.6.4 and the master branch +Changes between 1.6.5 and the master branch + Bug fixes: + - Have rewriteIn for servers use the correct config section. We + used to apply rewriteIn using the rewrite block of the client + rather than the server. Patch by Fabian Mauchle. Fixes + RADSECPROXY-59. + +2013-09-06 1.6.5 Bug fixes: - Fix a crash bug introduced in 1.6.4. Fixes RADSECPROXY-53, bugfix on 1.6.4. diff --git a/radsecproxy.c b/radsecproxy.c index 563c4a8..35d55f2 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -1625,9 +1625,8 @@ void replyh(struct server *server, unsigned char *buf) { } gettimeofday(&server->lastreply, NULL); - from = rqout->rq->from; - if (server->conf->rewritein && !dorewrite(msg, from->conf->rewritein)) { + if (server->conf->rewritein && !dorewrite(msg, server->conf->rewritein)) { debug(DBG_INFO, "replyh: rewritein failed"); goto errunlock; } @@ -1638,6 +1637,8 @@ void replyh(struct server *server, unsigned char *buf) { goto errunlock; } + from = rqout->rq->from; + /* MS MPPE */ for (node = list_first(msg->attrs); node; node = list_next(node)) { attr = (struct tlv *)node->data; |