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

mr3.8.2
Richard Fuchs 11 years ago
parent 2d53d1be1e
commit a37264f547

@ -1879,9 +1879,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