mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 03:28:07 +00:00
Fix previous commit
This commit is contained in:
parent
0a44f8a023
commit
11306361e8
1 changed files with 2 additions and 4 deletions
|
|
@ -917,13 +917,11 @@ static void sound_config_read(LinphoneCore *lc)
|
|||
|
||||
static void certificates_config_read(LinphoneCore *lc)
|
||||
{
|
||||
const char *rootca;
|
||||
|
||||
struct stat sb;
|
||||
rootca=lp_config_get_string(lc->config,"sip","root_ca", NULL);
|
||||
const char *rootca = lp_config_get_string(lc->config,"sip","root_ca", NULL);
|
||||
// If rootca is not existing anymore, we reset it to the default value
|
||||
if (rootca == NULL || !bctbx_file_exist(rootca)) {
|
||||
#ifdef __linux
|
||||
struct stat sb;
|
||||
if (stat("/etc/ssl/certs", &sb) == 0 && S_ISDIR(sb.st_mode)) {
|
||||
rootca = "/etc/ssl/certs";
|
||||
} else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue