eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 1187fcbf42d61c59ab95c91cc38aa08376388ad4
parent dfd304353d4f74c45b9eb6a0fbee57bcf1eab5de
Author: James Prestwood <prestwoj@gmail.com>
Date:   Thu, 23 Sep 2021 15:57:28 -0700

handshake: free chandef if already set

This can happen with FT, since the handshake object is reused.

Diffstat:
Msrc/handshake.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/handshake.c b/src/handshake.c @@ -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; }