FS-11207: [core] Fix msrp_init_ssl error handling

This commit is contained in:
Hunyadvári Péter 2018-10-05 14:43:55 +02:00
parent b5624eca20
commit 785ac737ca
1 changed files with 4 additions and 1 deletions

View File

@ -316,7 +316,10 @@ SWITCH_DECLARE(switch_status_t) switch_msrp_init()
globals.msock.thread = thread;
}
msrp_init_ssl();
if (msrp_init_ssl() == 0) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "MSRP ssl init failed\n");
return SWITCH_STATUS_FALSE;
}
status = msock_init(globals.ip, globals.msock_ssl.port, &globals.msock_ssl.sock, pool);
if (status == SWITCH_STATUS_SUCCESS) {