]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
There might not be a reply
authorAlan T. DeKok <aland@freeradius.org>
Wed, 28 Mar 2012 15:14:56 +0000 (17:14 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 28 Mar 2012 15:15:18 +0000 (17:15 +0200)
src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c

index 056e415a2cf95f69e5f31769d4d3bf087e16136a..94e428b536f3561427935e4534da99fd26fc5bd1 100644 (file)
@@ -828,7 +828,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.
                 */