Commit 247c0513 authored by gauthier's avatar gauthier
Browse files

parse conf before start !

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5423 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 137cb2ae
......@@ -116,6 +116,7 @@ int s6a_init(const mme_config_t *mme_config_p)
S6A_DEBUG("Freediameter version %s\n", fd_core_version());
}
/* Initializing freeDiameter core */
S6A_DEBUG("Initializing freeDiameter core...\n");
ret = fd_core_initialize();
......@@ -126,6 +127,16 @@ int s6a_init(const mme_config_t *mme_config_p)
S6A_DEBUG("Initializing freeDiameter core done\n");
}
S6A_DEBUG("Default ext path: %s\n", DEFAULT_EXTENSIONS_PATH);
ret = fd_core_parseconf(mme_config_p->s6a_config.conf_file);
if (ret != 0) {
S6A_ERROR("An error occurred during fd_core_parseconf file :%s.\n", mme_config_p->s6a_config.conf_file);
return ret;
}
/* Set gnutls debug level ? */
if (gnutls_debug) {
gnutls_global_set_log_function((gnutls_log_func)fd_gnutls_debug);
......@@ -140,13 +151,7 @@ int s6a_init(const mme_config_t *mme_config_p)
return ret;
}
S6A_DEBUG("Default ext path: %s\n", DEFAULT_EXTENSIONS_PATH);
ret = fd_core_parseconf(mme_config_p->s6a_config.conf_file);
if (ret != 0) {
S6A_ERROR("An error occurred during fd_core_parseconf file :%s.\n", mme_config_p->s6a_config.conf_file);
return ret;
}
ret = fd_core_waitstartcomplete();
if (ret != 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment