bss: Don't remove a BSS that is in use
authorPaul Stewart <pstew@chromium.org>
Mon, 4 Jun 2012 18:52:08 +0000 (21:52 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 4 Jun 2012 18:52:08 +0000 (21:52 +0300)
commita6b71f726a2c3223ea305bcf1bc6777635603827
tree9c4cf10b37acf0d29984016065573b2ea8858f1e
parentdd7fec1f2969c377ac895246edd34c13986ebb08
bss: Don't remove a BSS that is in use

When looking for a BSS to eject due to too many entries, never
pick one that is in use.  Otherwise, we run the risk of having
pointers to freed data.

Signed-hostap: Paul Stewart <pstew@chromium.org>
wpa_supplicant/bss.c