From b1b6e632459491c4b7752041a35f5972bd9ba536 Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Mon, 11 May 2026 14:42:42 +0200 Subject: [PATCH] MT#61856 monologue_call_create_media: check output of `monologue_open_ports()` Check what it actually returns and accordingly return false in case of error to the `monologue_call_create_media()` caller. Change-Id: I90b8069dcc770187aabefb40d96c1c6929c2f703 --- daemon/call.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/daemon/call.c b/daemon/call.c index b287ade5d..0dd21881e 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -6691,7 +6691,11 @@ static bool monologue_call_create_media(struct call_monologue *ml, sdp_ng_flags return false; __ice_init(m); - monologue_open_ports(ml); + if (!monologue_open_ports(ml)) { + ilog(LOG_ERR, "Error allocating media ports"); + return false; + } + monologue_media_start(ml); return true;