mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-09 02:32:53 +03:00
Merge pull request #169 from spinetix/spx-freetls
net.c: use after free in coap_free_context()
This commit is contained in:
1 file changed
+3
-3
@@ -500,13 +500,13 @@ coap_free_context(coap_context_t *context) {
|
||||
|
||||
coap_delete_all_resources(context);
|
||||
|
||||
if (context->dtls_context)
|
||||
coap_dtls_free_context(context->dtls_context);
|
||||
|
||||
LL_FOREACH_SAFE(context->endpoint, ep, tmp) {
|
||||
coap_free_endpoint(ep);
|
||||
}
|
||||
|
||||
if (context->dtls_context)
|
||||
coap_dtls_free_context(context->dtls_context);
|
||||
|
||||
if (context->psk_hint)
|
||||
coap_free(context->psk_hint);
|
||||
|
||||
|
||||
Reference in new issue
Block a user