Skip to content

Commit

Permalink
Assertions for scan complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Apr 17, 2014
1 parent cf5c1f8 commit 9f94b85
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/rlm_eap/eap.c
Expand Up @@ -512,6 +512,8 @@ rlm_rcode_t eap_compose(eap_handler_t *handler)
reply = eap_ds->request;
#endif

rad_assert(request != NULL);

/*
* The Id for the EAP packet to the NAS wasn't set.
* Do so now.
Expand Down
2 changes: 2 additions & 0 deletions src/modules/rlm_eap/libeap/eap_tls.c
Expand Up @@ -142,6 +142,8 @@ int eaptls_success(eap_handler_t *handler, int peap_flag)
REQUEST *request = handler->request;
tls_session_t *tls_session = handler->opaque;

rad_assert(request != NULL);

handler->finished = true;
reply.code = FR_TLS_SUCCESS;
reply.length = TLS_HEADER_LEN;
Expand Down
1 change: 1 addition & 0 deletions src/modules/rlm_eap/types/rlm_eap_leap/rlm_eap_leap.c
Expand Up @@ -43,6 +43,7 @@ static int leap_initiate(UNUSED void *instance, eap_handler_t *handler)
leap_session_t *session;
leap_packet_t *reply;

rad_assert(request != NULL);
RDEBUG2("Stage 2");

/*
Expand Down

0 comments on commit 9f94b85

Please sign in to comment.