From 4f0084b8c7dd0a162b948f5a9536dfb2f9803485 Mon Sep 17 00:00:00 2001 From: Dennis Yurasov Date: Tue, 5 Mar 2024 13:11:30 +0300 Subject: [PATCH] MT#55283 Fix TLS-ID change detection closes #1804 Change-Id: Icee3082e3db79473768445acf7a4b3074e34eb0f --- daemon/call.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/call.c b/daemon/call.c index 76fc1f273..ff79e0d35 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -2118,7 +2118,7 @@ static void __dtls_logic(const struct sdp_ng_flags *flags, __fingerprint_changed(other_media); other_media->fingerprint = sp->fingerprint; } - else if (other_media->tls_id.len && (sp->tls_id.len || str_cmp_str(&other_media->tls_id, &sp->tls_id))) { + else if (other_media->tls_id.len && (sp->tls_id.len == 0 || str_cmp_str(&other_media->tls_id, &sp->tls_id))) { // previously seen tls-id and new tls-id is different or not present ilogs(crypto, LOG_INFO, "TLS-ID changed, restarting DTLS"); __dtls_restart(other_media);