From 785ac737ca2883a817328e088c97c3053b4cde1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hunyadv=C3=A1ri=20P=C3=A9ter?= Date: Fri, 5 Oct 2018 14:43:55 +0200 Subject: [PATCH] FS-11207: [core] Fix msrp_init_ssl error handling --- src/switch_msrp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/switch_msrp.c b/src/switch_msrp.c index 665b848984..5c48a77781 100644 --- a/src/switch_msrp.c +++ b/src/switch_msrp.c @@ -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) {