mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 18:52:47 +01:00
station: Fix not cleaning up pending_connect
If the disconnect fails and station_disconnect_onconnect_cb is called
with an error, we reply to the original message accordingly.
Unfortunately pending_connect is not unrefed or cleared in this case.
Fix that.
Fixes: d0ee923dda
("station: Disconnect, if needed, on a new connection attempt")
This commit is contained in:
parent
074bc52717
commit
fc10ee8745
@ -2488,7 +2488,7 @@ static void station_disconnect_onconnect_cb(struct netdev *netdev, bool success,
|
||||
station->connect_pending_bss = NULL;
|
||||
|
||||
if (err < 0) {
|
||||
l_dbus_send(dbus_get_bus(),
|
||||
dbus_pending_reply(&station->connect_pending,
|
||||
dbus_error_from_errno(err,
|
||||
station->connect_pending));
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user