From c3e32b77e4e978138fff30af71ee3ba6eee03da6 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 5d24846b90..70944a75d0 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -2123,7 +2123,7 @@ static void __dtls_logic(const 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);