mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-18 01:53:06 -05:00
wpa_supplicant: Fix NULL dereference in eap_fast_parse_end()
In eap_fast_parse_end(), pos might be NULL if the line doesn't contain '='. Signed-hostap: Eytan Lifshitz <eytan.lifshitz@intel.com>
This commit is contained in:
parent
93a1caece0
commit
c0c11afaf1
@ -330,6 +330,8 @@ static const char * eap_fast_parse_end(struct eap_fast_pac **pac_root,
|
|||||||
static const char * eap_fast_parse_pac_type(struct eap_fast_pac *pac,
|
static const char * eap_fast_parse_pac_type(struct eap_fast_pac *pac,
|
||||||
char *pos)
|
char *pos)
|
||||||
{
|
{
|
||||||
|
if (!pos)
|
||||||
|
return "Cannot parse pac type";
|
||||||
pac->pac_type = atoi(pos);
|
pac->pac_type = atoi(pos);
|
||||||
if (pac->pac_type != PAC_TYPE_TUNNEL_PAC &&
|
if (pac->pac_type != PAC_TYPE_TUNNEL_PAC &&
|
||||||
pac->pac_type != PAC_TYPE_USER_AUTHORIZATION &&
|
pac->pac_type != PAC_TYPE_USER_AUTHORIZATION &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user