mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
Fix a segfault in wpa_supplicant_deinit
If wpa_supplicant is started with -u but the DBus service is already registered wpa_supplicant will bail out. However, it will segfault in wpa_supplicant_deinit because global->drv_priv wasn't allocated yet. Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
This commit is contained in:
parent
421b4ba50a
commit
81e59f1070
@ -2199,7 +2199,7 @@ void wpa_supplicant_deinit(struct wpa_global *global)
|
||||
|
||||
eap_peer_unregister_methods();
|
||||
|
||||
for (i = 0; wpa_supplicant_drivers[i]; i++) {
|
||||
for (i = 0; wpa_supplicant_drivers[i] && global->drv_priv; i++) {
|
||||
if (!global->drv_priv[i])
|
||||
continue;
|
||||
wpa_supplicant_drivers[i]->global_deinit(global->drv_priv[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user