Skip to content

Commit

Permalink
limit len of ESSID to ESSID_LEN_MAX
Browse files Browse the repository at this point in the history
  • Loading branch information
ZerBea committed Sep 20, 2018
1 parent 4d64da7 commit 9a0d46f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hcxpsktool.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,11 @@ static void addapessid(uint64_t macaddr, uint8_t essidlen, uint8_t *essid)
{
static apessidl_t *zeiger;


if(essidlen > ESSID_LEN_MAX)
{
return;
}
if(apessidliste == NULL)
{
apessidliste = malloc(APESSIDLIST_SIZE);
Expand Down

0 comments on commit 9a0d46f

Please sign in to comment.