[PATCH] PASN: Free extra_ies in pasn_data_deinit()

Jouni Malinen j at w1.fi
Thu Nov 26 07:58:20 PST 2026


On Thu, Nov 26, 2026 at 02:45:48PM +0200, Andrei Otcheretianski wrote:
> The extra_ies buffer has been owned by struct pasn_data since commit
> 147f83692475 ("PASN: Add set and get API for PASN data context"):
> pasn_set_extra_ies() stores its own copy and wpa_pasn_reset() frees
> it. pasn_data_deinit() does not free it, though, unlike the other
> buffers it owns. This works only because all the current users call
> wpa_pasn_reset() before pasn_data_deinit().
> 
> Free extra_ies in pasn_data_deinit() as well. While at it, drop the
> const qualifier from the field. It is left over from the time the
> field pointed to a buffer owned by the caller, and only forced casts
> when freeing it.

Thanks, applied.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list