mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-30 16:54:04 -05:00
Fix comparison to use correct symbol name (__rand vs. rand)
rand would be the address of rand() function and never NULL. The previous version could have crashed on invalid AKA-AUTS command. Though, these commands are only from hostapd which sends valid requests and as such, the actual issue did not show up.
This commit is contained in:
parent
ea20a1ad03
commit
6689218ec7
@ -544,7 +544,7 @@ static void aka_auts(int s, struct sockaddr_un *from, socklen_t fromlen,
|
|||||||
*auts++ = '\0';
|
*auts++ = '\0';
|
||||||
|
|
||||||
__rand = strchr(auts, ' ');
|
__rand = strchr(auts, ' ');
|
||||||
if (rand == NULL)
|
if (__rand == NULL)
|
||||||
return;
|
return;
|
||||||
*__rand++ = '\0';
|
*__rand++ = '\0';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user