mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-08 15:52:32 +01:00
netdev: prevent crash with open networks
The SAE offload changes assumed a handshake object would exist in netdev, which is not the case for open networks.
This commit is contained in:
parent
0b38aabde3
commit
73b247d72f
@ -1213,7 +1213,7 @@ static void netdev_connect_ok(struct netdev *netdev)
|
||||
}
|
||||
|
||||
/* Allow station to sync the PSK to disk */
|
||||
if (netdev->handshake->offload)
|
||||
if (netdev->handshake && netdev->handshake->offload)
|
||||
handshake_event(netdev->handshake,
|
||||
HANDSHAKE_EVENT_SETTING_KEYS);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user