Skip to content

Commit

Permalink
MT#55283 Fix TLS-ID change detection
Browse files Browse the repository at this point in the history
closes #1804

Change-Id: Icee3082e3db79473768445acf7a4b3074e34eb0f
  • Loading branch information
Den4t authored and rfuchs committed Mar 15, 2024
1 parent 4523dc2 commit c3e32b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/call.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c3e32b7

Please sign in to comment.