X-Git-Url: http://www.project-moonshot.org/gitweb/?p=libeap.git;a=blobdiff_plain;f=src%2Fap%2Fwps_hostapd.c;h=0b9c2af0279f4a0030b837ec2ab90d6e16b31d62;hp=7963d608062f124233b1d6ae2550ddaccfa895b3;hb=0314e26a61bcc18702479119d7568dcda2666167;hpb=d9c8a7c44cb19944e2559714f9804202c0ec20f7 diff --git a/src/ap/wps_hostapd.c b/src/ap/wps_hostapd.c index 7963d60..0b9c2af 100644 --- a/src/ap/wps_hostapd.c +++ b/src/ap/wps_hostapd.c @@ -540,6 +540,8 @@ static int count_interface_cb(struct hostapd_iface *iface, void *ctx) 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;