Browse Source

MT#55283 Fix TLS-ID change detection

closes #1804

Change-Id: Icee3082e3db79473768445acf7a4b3074e34eb0f
pull/1809/head
Dennis Yurasov 2 years ago
committed by Richard Fuchs
parent
commit
c3e32b77e4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/call.c

+ 1
- 1
daemon/call.c View File

@ -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);


Loading…
Cancel
Save