Browse Source

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

pull/148/head
Richard Fuchs 10 years ago
parent
commit
87feafc790
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      daemon/call.c

+ 7
- 3
daemon/call.c View File

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