From: Jouni Malinen Date: Sun, 19 Aug 2012 17:51:21 +0000 (+0300) Subject: EAP-SIM DB: Do not require external program at startup X-Git-Tag: hostap_2_0~363 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=704b8762a227fb21e0deb2de4427c386dc182e78;p=thirdparty%2Fhostap.git EAP-SIM DB: Do not require external program at startup The previous implementation was able to re-open the connection to an external program (e.g., hlr_auc_gw) when needed, but required the connection to be available during startup. Extend this to allow the initial failure, so that hlr_auc_gw can be started after hostapd. Signed-hostap: Jouni Malinen --- diff --git a/src/eap_server/eap_sim_db.c b/src/eap_server/eap_sim_db.c index ce3238c9b..611e89b34 100644 --- a/src/eap_server/eap_sim_db.c +++ b/src/eap_server/eap_sim_db.c @@ -407,8 +407,11 @@ void * eap_sim_db_init(const char *config, goto fail; if (os_strncmp(data->fname, "unix:", 5) == 0) { - if (eap_sim_db_open_socket(data)) - goto fail; + if (eap_sim_db_open_socket(data)) { + wpa_printf(MSG_DEBUG, "EAP-SIM DB: External database " + "connection not available - will retry " + "later"); + } } return data;