]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - build-utilities/hostap.git/blobdiff - wpa_supplicant/events.c
Fix crash when a local deauth occurs (squash)
[build-utilities/hostap.git] / wpa_supplicant / events.c
index d33cb35e71594f63bbc2fc683fc4d5250d70ef7d..191748a8afe89bf3bc561e8b8d9e8eb85d40bd36 100644 (file)
@@ -1665,7 +1665,7 @@ static void wpa_supplicant_event_disassoc(struct wpa_supplicant *wpa_s,
                return;
        }
 
-       if (os_memcmp(wpa_s->bssid, addr, ETH_ALEN)) {
+       if (addr && wpa_s->bssid && os_memcmp(wpa_s->bssid, addr, ETH_ALEN)) {
                /* This may occur during roaming */
                wpa_dbg(wpa_s, MSG_DEBUG, "Ignore disconnect from"
                        " a BSS which is not the current one");