mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 14:49:24 +01:00
device: Free eapol_sm on netdev_connect failure
This commit is contained in:
parent
09dcd78e30
commit
959ebd505b
@ -662,6 +662,9 @@ void device_connect_network(struct device *device, struct network *network,
|
||||
if (netdev_connect(device->netdev, bss, sm,
|
||||
device_netdev_event,
|
||||
device_connect_cb, device) < 0) {
|
||||
if (sm)
|
||||
eapol_sm_free(sm);
|
||||
|
||||
dbus_pending_reply(&device->connect_pending,
|
||||
dbus_error_failed(device->connect_pending));
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user