From: Jouni Malinen Date: Tue, 31 May 2011 17:11:25 +0000 (+0300) Subject: Fix a compiler warning on WPS-AP-without-UPnP builds X-Git-Tag: hostap-1-bp~377 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b98a33c86159812a324e7c6cb3c237c4dae3293;p=thirdparty%2Fhostap.git Fix a compiler warning on WPS-AP-without-UPnP builds --- diff --git a/src/ap/wps_hostapd.c b/src/ap/wps_hostapd.c index fc927f98f..640e8cd56 100644 --- a/src/ap/wps_hostapd.c +++ b/src/ap/wps_hostapd.c @@ -890,7 +890,7 @@ int hostapd_init_wps_complete(struct hostapd_data *hapd) { struct wps_context *wps = hapd->wps; - if (hapd->wps == NULL) + if (wps == NULL) return 0; #ifdef CONFIG_WPS_UPNP