MT#55283 Fix TLS-ID change detection

closes #1804

Change-Id: Icee3082e3db79473768445acf7a4b3074e34eb0f
pull/1809/head
Dennis Yurasov 1 year ago committed by Richard Fuchs
parent 4523dc2d7b
commit c3e32b77e4

@ -2123,7 +2123,7 @@ static void __dtls_logic(const sdp_ng_flags *flags,
__fingerprint_changed(other_media); __fingerprint_changed(other_media);
other_media->fingerprint = sp->fingerprint; 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 // previously seen tls-id and new tls-id is different or not present
ilogs(crypto, LOG_INFO, "TLS-ID changed, restarting DTLS"); ilogs(crypto, LOG_INFO, "TLS-ID changed, restarting DTLS");
__dtls_restart(other_media); __dtls_restart(other_media);

Loading…
Cancel
Save