sequence of init was wrong

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5376 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
Lionel Gauthier
2014-06-10 08:20:38 +00:00
parent e6770e03c6
commit 1351f5d0cf
+8 -6
View File
@@ -273,12 +273,6 @@ int s6a_init(hss_config_t *hss_config_p)
goto err;
}
ret = fd_core_start();
if (ret != 0) {
strcpy(why, "fd_core_start");
goto err;
}
/* Parse the external configuration file */
ret = fd_core_parseconf(hss_config_p->freediameter_config);
if (ret != 0) {
@@ -286,6 +280,14 @@ int s6a_init(hss_config_t *hss_config_p)
goto err;
}
ret = fd_core_start();
if (ret != 0) {
strcpy(why, "fd_core_start");
goto err;
}
/* We wait till freediameter has completed loading extensions */
fd_core_waitstartcomplete();