Skip to content

Commit

Permalink
Set request id should be bool
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Oct 18, 2015
1 parent f9aaaa1 commit 911884a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/modules/rlm_eap/eap.h
Expand Up @@ -47,7 +47,7 @@ RCSIDH(eap_h, "$Id$")
typedef struct eap_ds {
eap_packet_t *response;
eap_packet_t *request;
int set_request_id;
bool set_request_id;
} EAP_DS;


Expand Down
2 changes: 1 addition & 1 deletion src/modules/rlm_eap/types/rlm_eap_leap/rlm_eap_leap.c
Expand Up @@ -150,7 +150,7 @@ static int mod_process(UNUSED void *instance, eap_session_t *eap_session)
* Do this only for Success.
*/
eap_session->eap_ds->request->id = eap_session->eap_ds->response->id + 1;
eap_session->eap_ds->set_request_id = 1;
eap_session->eap_ds->set_request_id = true;

/*
* LEAP requires a challenge in stage 4, not
Expand Down
2 changes: 1 addition & 1 deletion src/modules/rlm_eap/types/rlm_eap_sim/rlm_eap_sim.c
Expand Up @@ -49,7 +49,7 @@ typedef struct eap_sim_server_state {
static int eap_sim_compose(eap_session_t *eap_session)
{
/* we will set the ID on requests, since we have to HMAC it */
eap_session->eap_ds->set_request_id = 1;
eap_session->eap_ds->set_request_id = true;

return map_eapsim_basictypes(eap_session->request->reply,
eap_session->eap_ds->request);
Expand Down

0 comments on commit 911884a

Please sign in to comment.