[PATCH] P2P: add missing NULL check in p2p_ctrl_flush()

Jouni Malinen j at w1.fi
Sat Jan 24 09:59:26 PST 2026


On Mon, Nov 10, 2025 at 02:08:02PM +1100, Dan Callaghan wrote:
> When wpa_supplicant is compiled with CONFIG_TESTING_OPTIONS and receives
> a FLUSH command from wpa_cli, p2p_ctrl_flush() may crash due to passing
> a NULL pointer into p2p_set_invitation_op_freq().
> 
> Add a NULL pointer check, similar to the other NULL pointer check
> already in p2p_ctrl_flush().

Thanks, applied.
 
-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list