From: Jouni Malinen Date: Wed, 21 Sep 2016 21:31:00 +0000 (+0300) Subject: Initialize iface->sta_seen on allocation X-Git-Tag: hostap_2_6~50 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;h=5e993390f6ce34b169bf37becb2e5561262ec68f;hp=5e993390f6ce34b169bf37becb2e5561262ec68f;p=mech_eap.git Initialize iface->sta_seen on allocation Previously, struct hostapd_iface sta_seen list head was initialized only when completing interface setup. This left a window for operation that could potentially iterate through the list before the list head has been initialized. While the existing code checked iface->num_sta_seen to avoid this case, it is much cleaner to initialize the list when struct hostapd_iface is allocated to avoid any accidental missing of the extra checks before list iteration. Signed-off-by: Jouni Malinen ---