mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-27 08:54:13 +01:00
netdev: destroy auth-proto after external auth
With external auth there is no associate event meaning the auth proto never gets freed, which prevents eapol from starting inside the OCI callback. Check for this specific case and free the auth proto after signaling that external auth has completed.
This commit is contained in:
parent
64b872f363
commit
7144741537
@ -3483,6 +3483,13 @@ static void netdev_external_auth_sae_tx_associate(void *user_data)
|
|||||||
|
|
||||||
netdev_send_external_auth(netdev, MMPDU_STATUS_CODE_SUCCESS);
|
netdev_send_external_auth(netdev, MMPDU_STATUS_CODE_SUCCESS);
|
||||||
netdev_ensure_eapol_registered(netdev);
|
netdev_ensure_eapol_registered(netdev);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Free the auth proto now. With external auth there is no associate
|
||||||
|
* event which is where this normally gets cleaned up.
|
||||||
|
*/
|
||||||
|
auth_proto_free(netdev->ap);
|
||||||
|
netdev->ap = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct rtnl_data {
|
struct rtnl_data {
|
||||||
|
Loading…
Reference in New Issue
Block a user