[PATCH 50/97] NAN: Clear peer security info on flush
Andrei Otcheretianski
andrei.otcheretianski at intel.com
Tue Apr 28 13:05:51 PDT 2026
Properly clear the nan_peer_sec_info_entry struct before freeing,
as it contains keys.
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski at intel.com>
---
src/nan/nan.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/nan/nan.c b/src/nan/nan.c
index e55936edd7..0d9b443eb7 100644
--- a/src/nan/nan.c
+++ b/src/nan/nan.c
@@ -117,6 +117,7 @@ static void nan_peer_flush_sec(struct nan_peer_info *info)
dl_list_for_each_safe(cur, next, &info->sec,
struct nan_peer_sec_info_entry, list) {
dl_list_del(&cur->list);
+ os_memset(cur, 0, sizeof(*cur));
os_free(cur);
}
}
--
2.53.0
More information about the Hostap
mailing list