]> 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:14:56 +0000 (17:14 +0200)
src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c

index fc43d33e08d6c7dfddaa2b5d70086e4fcab2c26e..71a126d935e4a97748c06dd67582a3465b9c5db2 100644 (file)
@@ -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.
                 */