From: Jouni Malinen Date: Fri, 25 Dec 2009 09:51:20 +0000 (+0200) Subject: hostapd: Do not call eloop_terminate() on interface setup failure X-Git-Tag: hostap_0_7_1~211 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bee07ce80531bdb1c4f9efa0e34b46c872ef6f36;p=thirdparty%2Fhostap.git hostapd: Do not call eloop_terminate() on interface setup failure The caller is able to handle the error code properly and there is no need to forcefully stop the eloop run here. --- diff --git a/hostapd/hostapd.c b/hostapd/hostapd.c index 15efd50c9..7a6ca411b 100644 --- a/hostapd/hostapd.c +++ b/hostapd/hostapd.c @@ -1348,9 +1348,8 @@ int hostapd_setup_interface(struct hostapd_iface *iface) ret = setup_interface(iface); if (ret) { - wpa_printf(MSG_DEBUG, "%s: Unable to setup interface.", + wpa_printf(MSG_ERROR, "%s: Unable to setup interface.", iface->bss[0]->conf->iface); - eloop_terminate(); return -1; }