X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Frlm_eap%2Ftypes%2Frlm_eap_ttls%2Fttls.c;h=fc2aca3f458ecb17e1f41f751ff453298ab6aacb;hb=94dc4bb60ec649ce899c1d5e32b575d9523a48f2;hp=c3fde1cb9c7f82bbc66a4bfb5a24268d6ca02835;hpb=82aa1dbb4b17453662b9d6bad13aefe4efea4d10;p=freeradius.git 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 c3fde1c..fc2aca3 100644 --- a/src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c +++ b/src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c @@ -618,6 +618,8 @@ static int process_reply(EAP_HANDLER *handler, tls_session_t *tls_session, ttls_tunnel_t *t = tls_session->opaque; handler = handler; /* -Wunused */ + rad_assert(request != NULL); + rad_assert(handler->request == request); /* * If the response packet was Access-Accept, then @@ -789,6 +791,7 @@ static int eapttls_postproxy(EAP_HANDLER *handler, void *data) tls_session_t *tls_session = (tls_session_t *) data; REQUEST *fake, *request = handler->request; + rad_assert(request != NULL); RDEBUG("Passing reply from proxy back into the tunnel."); /* @@ -929,6 +932,8 @@ int eapttls_process(EAP_HANDLER *handler, tls_session_t *tls_session) size_t data_len; REQUEST *request = handler->request; + rad_assert(request != NULL); + /* * Just look at the buffer directly, without doing * record_minus.