summaryrefslogtreecommitdiff
path: root/radsecproxy.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2015-01-14 15:03:30 +0100
committerLinus Nordberg <linus@nordberg.se>2015-01-14 15:03:30 +0100
commitaa4a5a8c3e32235f22cf05360fca3c6067b77044 (patch)
treeed373ff1876be6262e69ef363da1b55516a72e67 /radsecproxy.c
parentd22b2a2d3f0ff19568d4c1a2b08ad9d4dec374b9 (diff)
Have rewriteIn for servers use the correct config section.
Conflicts: ChangeLog
Diffstat (limited to 'radsecproxy.c')
-rw-r--r--radsecproxy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index b7b2063..126a0a7 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -1638,9 +1638,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;
}
@@ -1651,6 +1650,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;