aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2005-06-26 18:34:34 (GMT)
committerJouni Malinen <j@w1.fi>2005-06-26 18:34:34 (GMT)
commit894e73f513d3f718965a830affd19c627a0cdaf0 (patch)
treefccfe195f40803b803156914a9f23e471fc27947
parente5cffc252494e770eed1d28dcc072343ff9577dc (diff)
downloadhostap-history-894e73f513d3f718965a830affd19c627a0cdaf0.zip
hostap-history-894e73f513d3f718965a830affd19c627a0cdaf0.tar.gz
hostap-history-894e73f513d3f718965a830affd19c627a0cdaf0.tar.bz2
Fixed new WPA/RSN IE processing in wpa_supplicant_set_suites() to not
segfault if bss == NULL.
-rw-r--r--wpa_supplicant/wpa_supplicant.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 6c94202..9adcfb7 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -953,9 +953,9 @@ int wpa_supplicant_set_suites(struct wpa_supplicant *wpa_s,
wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_PROTO, proto);
if (wpa_sm_set_ap_wpa_ie(wpa_s->wpa, bss ? bss->wpa_ie : NULL,
- bss->wpa_ie_len) ||
+ bss ? bss->wpa_ie_len : 0) ||
wpa_sm_set_ap_rsn_ie(wpa_s->wpa, bss ? bss->rsn_ie : NULL,
- bss->rsn_ie_len))
+ bss ? bss->rsn_ie_len : 0))
return -1;
sel = ie.group_cipher & ssid->group_cipher;