Skip to content

Commit

Permalink
Merge pull request #332 from mrdeep1/coap_free_endpoint_fix
Browse files Browse the repository at this point in the history
coap_free_endpoint does not clean up tinydtls encryption sessions
  • Loading branch information
obgm authored Apr 11, 2019
2 parents 302bbff + bc789ed commit 3bd5f48
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/coap_session.c
Original file line number Diff line number Diff line change
Expand Up @@ -915,8 +915,6 @@ coap_free_endpoint(coap_endpoint_t *ep) {
LL_FOREACH_SAFE(ep->sessions, session, tmp) {
assert(session->ref == 0);
if (session->ref == 0) {
session->endpoint = NULL;
session->context = NULL;
coap_session_free(session);
}
}
Expand Down

0 comments on commit 3bd5f48

Please sign in to comment.