mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-10-08 17:47:26 +02:00
station: Fix scan_pending assignment
In case an error occurs starting a scan, the scan_pending variable is never cleared and message is never unrefed.
This commit is contained in:
parent
c043a93784
commit
e52204f46f
@ -1933,8 +1933,6 @@ static struct l_dbus_message *station_dbus_scan(struct l_dbus *dbus,
|
|||||||
if (station->scan_pending)
|
if (station->scan_pending)
|
||||||
return dbus_error_busy(message);
|
return dbus_error_busy(message);
|
||||||
|
|
||||||
station->scan_pending = l_dbus_message_ref(message);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If we're not connected and no hidden networks are seen & configured,
|
* If we're not connected and no hidden networks are seen & configured,
|
||||||
* use passive scanning to hide our MAC address
|
* use passive scanning to hide our MAC address
|
||||||
@ -1960,6 +1958,8 @@ static struct l_dbus_message *station_dbus_scan(struct l_dbus *dbus,
|
|||||||
return dbus_error_failed(message);
|
return dbus_error_failed(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
station->scan_pending = l_dbus_message_ref(message);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user