From: Jouni Malinen Date: Fri, 11 Dec 2009 14:29:28 +0000 (+0200) Subject: Fix hostapd build without RADIUS server X-Git-Tag: hostap_0_7_1~368 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=616ea674c8b21587436b5f7800899d85c8e96b51;p=thirdparty%2Fhostap.git Fix hostapd build without RADIUS server --- diff --git a/hostapd/dump_state.c b/hostapd/dump_state.c index d7c53236d..dcd21bb76 100644 --- a/hostapd/dump_state.c +++ b/hostapd/dump_state.c @@ -156,6 +156,7 @@ static void hostapd_dump_state(struct hostapd_data *hapd) buf[count] = '\0'; fprintf(f, "%s", buf); +#ifdef RADIUS_SERVER count = radius_server_get_mib(hapd->radius_srv, buf, 4096); if (count < 0) count = 0; @@ -163,6 +164,8 @@ static void hostapd_dump_state(struct hostapd_data *hapd) count = 4095; buf[count] = '\0'; fprintf(f, "%s", buf); +#endif /* RADIUS_SERVER */ + os_free(buf); } #endif /* CONFIG_NO_RADIUS */