eappeap_postproxy() - set fake->proxy_reply

Ken-ichirou MATSUZAWA chamas at h4.dion.ne.jp
Mon Feb 14 12:48:32 CET 2011


 Hello,

I can't think I understand what went wrong but it works.
just escaping from first NULL check in eap_post_proxy()

or commit: add0068afc3b732c27c9cc116d7ec331f9a32735 says
I misconfigured PEAP proxy?

---
 src/modules/rlm_eap/types/rlm_eap_peap/peap.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/modules/rlm_eap/types/rlm_eap_peap/peap.c
b/src/modules/rlm_eap/types/rlm_eap_peap/peap.c
index 0d9a031..36c012b 100644
--- a/src/modules/rlm_eap/types/rlm_eap_peap/peap.c
+++ b/src/modules/rlm_eap/types/rlm_eap_peap/peap.c
@@ -571,7 +571,7 @@ static int eappeap_postproxy(EAP_HANDLER *handler,
void *data)
 		request->proxy = NULL;

 		rad_assert(fake->reply == NULL);
-		fake->reply = request->proxy_reply;
+		fake->reply = fake->proxy_reply = request->proxy_reply;
 		request->proxy_reply = NULL;

 		if ((debug_flag > 0) && fr_log_fp) {
@@ -585,7 +585,7 @@ static int eappeap_postproxy(EAP_HANDLER *handler,
void *data)
 		fake->options &= ~RAD_REQUEST_OPTION_PROXY_EAP;
 		RDEBUG2("Passing reply back for EAP-MS-CHAP-V2");
 		module_post_proxy(0, fake);
+		fake->proxy_reply = NULL;

 		/*
 		 *	FIXME: If rcode returns fail, do something
-- 
1.7.2.3




More information about the Freeradius-Users mailing list