summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d9c8a7c)
Commit
3379a3a795803335b3f464f34a15f06843369fb1 added a direct
iface->for_each_interface use without verification whether the
function is available. This works with hostapd, but not
wpa_supplicant (which crashes on segfault).
static int interface_count(struct hostapd_iface *iface)
{
int count = 0;
static int interface_count(struct hostapd_iface *iface)
{
int count = 0;
+ if (iface->for_each_interface == NULL)
+ return 0;
iface->for_each_interface(iface->interfaces, count_interface_cb,
&count);
return count;
iface->for_each_interface(iface->interfaces, count_interface_cb,
&count);
return count;