3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-04 02:18:49 +02:00

handshake: free chandef if already set

This can happen with FT, since the handshake object is reused.
This commit is contained in:
James Prestwood 2021-09-23 15:57:28 -07:00 committed by Denis Kenzior
parent dfd304353d
commit 1187fcbf42

View File

@ -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;
}