mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
ctrl_iface: Check for IEEE8021X_EAPOL definition
The whole wpa_supplicant_ctrl_iface_ctrl_rsp_handle() function operates on the ssid->eap field which exists only if IEEE8021X_EAPOL has been defined. Therefore the whole function body needs to be enclosed within an #ifdef/endif block. Signed-hostap: Antonio Quartulli <ordex@autistici.org>
This commit is contained in:
parent
c84b868a71
commit
b58bcbb2ef
@ -769,6 +769,7 @@ int wpa_supplicant_ctrl_iface_ctrl_rsp_handle(struct wpa_supplicant *wpa_s,
|
|||||||
const char *field,
|
const char *field,
|
||||||
const char *value)
|
const char *value)
|
||||||
{
|
{
|
||||||
|
#ifdef IEEE8021X_EAPOL
|
||||||
struct eap_peer_config *eap = &ssid->eap;
|
struct eap_peer_config *eap = &ssid->eap;
|
||||||
|
|
||||||
wpa_printf(MSG_DEBUG, "CTRL_IFACE: response handle field=%s", field);
|
wpa_printf(MSG_DEBUG, "CTRL_IFACE: response handle field=%s", field);
|
||||||
@ -828,6 +829,10 @@ int wpa_supplicant_ctrl_iface_ctrl_rsp_handle(struct wpa_supplicant *wpa_s,
|
|||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
#else /* IEEE8021X_EAPOL */
|
||||||
|
wpa_printf(MSG_DEBUG, "CTRL_IFACE: IEEE 802.1X not included");
|
||||||
|
return -1;
|
||||||
|
#endif /* IEEE8021X_EAPOL */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user