MT#14817 don't reset crypto on non-filled packet stream

mr4.0.1
Richard Fuchs 11 years ago
parent 7bbcd422a1
commit f0fb228fe1

@ -1903,9 +1903,13 @@ static void __fill_stream(struct packet_stream *ps, const struct endpoint *epp,
ps->endpoint = ep;
ps->advertised_endpoint = ep;
/* we reset crypto params whenever the endpoint changes */
crypto_reset(&ps->crypto);
dtls_shutdown(ps);
if (PS_ISSET(ps, FILLED)) {
/* we reset crypto params whenever the endpoint changes */
crypto_reset(&ps->crypto);
dtls_shutdown(ps);
}
PS_SET(ps, FILLED);
}

Loading…
Cancel
Save