]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Add missing NULL check in p2p_ctrl_flush()
authorDan Callaghan <dan.callaghan@morsemicro.com>
Mon, 10 Nov 2025 03:08:02 +0000 (14:08 +1100)
committerJouni Malinen <j@w1.fi>
Sat, 24 Jan 2026 17:51:13 +0000 (19:51 +0200)
commit2ec82ea85a5d4a2f8e81fe81fdbfc9d0617a74e4
tree14ce41e8c79ebdde7195f78c220bb2fd0b1de9b4
parent31e55e6d2ad87a251cfc7ee19c303dbe96577162
P2P: Add missing NULL check in p2p_ctrl_flush()

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().

Fixes: 475f50d71001 ("P2P2: Allow op class and channel override for Invitation Response")
Signed-off-by: Dan Callaghan <dan.callaghan@morsemicro.com>
wpa_supplicant/ctrl_iface.c