diff options
author | Helmut Schaa <helmut.schaa@googlemail.com> | 2009-02-04 21:55:12 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2009-02-04 21:55:12 +0200 |
commit | 81e59f1070f223c4b244a20aa496b79d9cdb5961 (patch) | |
tree | fb1d7cb0d58d9244a2ca8aac830a141959142d8f /wpa_supplicant | |
parent | 421b4ba50a5ad3ba99ad8a654f96850835271086 (diff) | |
download | external_wpa_supplicant_8_ti-81e59f1070f223c4b244a20aa496b79d9cdb5961.zip external_wpa_supplicant_8_ti-81e59f1070f223c4b244a20aa496b79d9cdb5961.tar.gz external_wpa_supplicant_8_ti-81e59f1070f223c4b244a20aa496b79d9cdb5961.tar.bz2 |
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>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r-- | wpa_supplicant/wpa_supplicant.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index be40654..26dec1b 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -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]); |