commit 73b247d72fa154e805f38005d3705eb44d8f8b5f
parent 0b38aabde3c2aa9200f54b5463eba7eac7431bd3
Author: James Prestwood <prestwoj@gmail.com>
Date: Mon, 22 Mar 2021 15:20:52 -0700
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.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/netdev.c b/src/netdev.c
@@ -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);