Skip to content

Commit

Permalink
Maximum length on EAP identity
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Oct 5, 2014
1 parent 21baff4 commit e2adbe2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/modules/rlm_eap/eap.c
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,12 @@ static char *eap_identity(REQUEST *request, eap_handler_t *handler, eap_packet_r
len = ntohs(len);

if ((len <= 5) || (eap_packet->data[1] == 0x00)) {
RDEBUG("UserIdentity Unknown ");
RDEBUG("EAP-Identity Unknown");
return NULL;
}

if (len > 1024) {
RDEBUG("EAP-Identity too long");
return NULL;
}

Expand Down

0 comments on commit e2adbe2

Please sign in to comment.