From 6b49c8852712b17d039f1b10fc3c56e220ecb133 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 23 Jun 2020 09:08:20 -0400 Subject: [PATCH] don't always reset crypto when DTLS is in use closes #1019 Change-Id: I4fc1b015f70994176118f523e4d38b311ac78acb --- daemon/call.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/call.c b/daemon/call.c index 0ff52fd37..52db49e0e 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -1000,7 +1000,7 @@ static void __fill_stream(struct packet_stream *ps, const struct endpoint *epp, ps->endpoint = ep; - if (PS_ISSET(ps, FILLED)) { + if (PS_ISSET(ps, FILLED) && !MEDIA_ISSET(media, DTLS)) { /* we reset crypto params whenever the endpoint changes */ // XXX fix WRT SSRC handling crypto_reset(&ps->crypto);