From: Alan T. DeKok Date: Wed, 28 Mar 2012 15:14:56 +0000 (+0200) Subject: There might not be a reply X-Git-Tag: release_2_2_0~148 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ea4b648f5a2f8c90181b9b53b9995cef7ac29ef;p=thirdparty%2Ffreeradius-server.git There might not be a reply --- diff --git a/src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c b/src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c index fc43d33e08d..71a126d935e 100644 --- a/src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c +++ b/src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c @@ -813,7 +813,9 @@ static int eapttls_postproxy(EAP_HANDLER *handler, void *data) /* * Do the callback, if it exists, and if it was a success. */ - if (fake && (handler->request->proxy_reply->code == PW_AUTHENTICATION_ACK)) { + if (fake && + handler->request->proxy_reply && + (handler->request->proxy_reply->code == PW_AUTHENTICATION_ACK)) { /* * Terrible hacks. */