From patchwork Mon Dec 12 17:00:38 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Quartulli X-Patchwork-Id: 130798 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "maxx.shmoo.com", Issuer "CA Cert Signing Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id DC9DEB6F98 for ; Tue, 13 Dec 2011 04:01:26 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 104E39C0E2; Mon, 12 Dec 2011 12:01:22 -0500 (EST) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hfSNl+o5Lb+o; Mon, 12 Dec 2011 12:01:21 -0500 (EST) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id E47729C0F7; Mon, 12 Dec 2011 12:01:17 -0500 (EST) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id E16209C0F7 for ; Mon, 12 Dec 2011 12:01:15 -0500 (EST) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2mxq7YFjmKlu for ; Mon, 12 Dec 2011 12:01:11 -0500 (EST) Received: from latitanza.investici.org (latitanza.investici.org [82.94.249.234]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "smtp.autistici.org", Issuer "Autistici/Inventati Certification Authority" (not verified)) by maxx.maxx.shmoo.com (Postfix) with ESMTPS id 5CE2F9C0E2 for ; Mon, 12 Dec 2011 12:01:11 -0500 (EST) Received: from [82.94.249.234] (latitanza [82.94.249.234]) (Authenticated sender: ordex@autistici.org) by localhost (Postfix) with ESMTPSA id DF7F69835A; Mon, 12 Dec 2011 17:01:08 +0000 (UTC) X-DKIM: Sendmail DKIM Filter v2.8.2 latitanza.investici.org DF7F69835A From: Antonio Quartulli To: hostap Subject: [PATCH] ctrl_iface: check for IEEE8021X_EAPOL definition in wpa_supplicant_ctrl_iface_ctrl_rsp_handle() Date: Mon, 12 Dec 2011 18:00:38 +0100 Message-Id: <1323709238-32367-1-git-send-email-ordex@autistici.org> X-Mailer: git-send-email 1.7.3.4 X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com The whole wpa_supplicant_ctrl_iface_ctrl_rsp_handle() function operates on the ssid->eap field which exists only if IEEE8021X_EAPOL has been defined. Therefore the whole function body needs to be enclosed within an #ifdef/endif block. Signed-off-by: Antonio Quartulli --- wpa_supplicant/ctrl_iface.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index b9ec347..29d507b 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -769,6 +769,7 @@ int wpa_supplicant_ctrl_iface_ctrl_rsp_handle(struct wpa_supplicant *wpa_s, const char *field, const char *value) { +#ifdef IEEE8021X_EAPOL struct eap_peer_config *eap = &ssid->eap; wpa_printf(MSG_DEBUG, "CTRL_IFACE: response handle field=%s", field); @@ -828,6 +829,11 @@ int wpa_supplicant_ctrl_iface_ctrl_rsp_handle(struct wpa_supplicant *wpa_s, } return 0; + +#else /* IEEE8021X_EAPOL */ + wpa_printf(MSG_DEBUG, "CTRL_IFACE: 802.1X not included"); + return -1; +#endif /* IEEE8021X_EAPOL */ }