don't always reset crypto when DTLS is in use

closes #1019

Change-Id: I4fc1b015f70994176118f523e4d38b311ac78acb
changes/79/41179/1
Richard Fuchs 6 years ago
parent eb8169868d
commit 6b49c88527

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

Loading…
Cancel
Save