]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Make p2p_check_pref_chan_no_recv() easier for static analyzers
authorJouni Malinen <jouni@codeaurora.org>
Thu, 30 Sep 2021 15:27:37 +0000 (18:27 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 30 Sep 2021 15:27:37 +0000 (18:27 +0300)
commitafa0b9b6c56491cb9bfdbf4911b0f5f6f6fa7b95
treec0adbd51ae83dc231b3d05ede7bde25433d5d0ee
parent857c4dfa8388472012806dd48dfa58d9bb31524d
P2P: Make p2p_check_pref_chan_no_recv() easier for static analyzers

Add an explicit check for msg->channel_list != NULL instead of depending
on msg->channel_list_len > 0 implying that. This is to silence invalid
static analyzer reports.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/p2p/p2p_go_neg.c