Make last_scan_res update easier for static analyzers
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 25 Apr 2014 20:19:47 +0000 (23:19 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 29 Apr 2014 09:52:10 +0000 (12:52 +0300)
commitece88f7697af9918522799697d4ac991b235d2f8
tree5ad57d208873d7a94e4e7a7dc47e970574be17af
parentd06e9ac5f551a59928cad50802f7638b790f9b59
Make last_scan_res update easier for static analyzers

The check based on last_scan_res_used is sufficient for making sure that
last_scan_res is allocated. However, it is a bit too complex for static
analyzers to notice, so add an explicit check to avoid bogus reports.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/bss.c