hostapd: Fix segmentation fault when calling hostapd_cli all_sta
authorIlan Peer <ilan.peer@intel.com>
Wed, 22 Jan 2014 14:05:46 +0000 (16:05 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 22 Jan 2014 17:28:57 +0000 (19:28 +0200)
commita487b3557215ad736cf7c6e6f8d07f03b94cad31
tree0c4a2499e06f31ba2a9bb2cdb60db9700ed22626
parenta6cff8bfa87dab458eeef43e158ba92b7a10aed5
hostapd: Fix segmentation fault when calling hostapd_cli all_sta

While iterating over the stations hostapd_ctrl_iface_sta_mib()
might be called with sta == NULL. Fix this.

Signed-hostap: Ilan Peer <ilan.peer@intel.com>
src/ap/ctrl_iface_ap.c