mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01:00
handshake: free chandef if already set
This can happen with FT, since the handshake object is reused.
This commit is contained in:
parent
dfd304353d
commit
1187fcbf42
@ -1024,6 +1024,9 @@ bool handshake_state_add_ecc_sae_pt(struct handshake_state *s,
|
||||
void handshake_state_set_chandef(struct handshake_state *s,
|
||||
struct band_chandef *chandef)
|
||||
{
|
||||
if (s->chandef)
|
||||
l_free(s->chandef);
|
||||
|
||||
s->chandef = chandef;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user