From 4e3627f01c1a62cad621a15f03a26ef84acb7609 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Wed, 14 Jan 2015 14:55:31 +0100 Subject: Have rewriteIn for servers use the correct config section. --- radsecproxy.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'radsecproxy.c') 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; -- cgit v1.1