]> git.ipfire.org Git - thirdparty/hostap.git/commit
Use size_t instead of unsigned_int for last_scan_res
authorJouni Malinen <j@w1.fi>
Sun, 22 Mar 2020 15:30:23 +0000 (17:30 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 22 Mar 2020 16:50:04 +0000 (18:50 +0200)
commit4391ddd6395f63226ec3b14bcf325356653a614f
treec9105cd2cfa9f6ccceeb604d81f092fb8ce80764
parent7fb365893a0ee2d7c4ddc9654dc905086fffb698
Use size_t instead of unsigned_int for last_scan_res

This avoids a theoretical unsigned integer overflow case with 32-bit
integers, but something that could potentially be hit with 16-bit int
(though, even that part looks pretty theoretical in this particular case
of number of BSSs in scan results).

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/bss.c
wpa_supplicant/wpa_supplicant_i.h