mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-27 09:17:08 +03:00
Merge pull request #451 from nmeum/coap-server-segfault
coap_free_endpoint: fix segfault with incorrect -A argument
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -1129,7 +1129,7 @@ coap_free_endpoint(coap_endpoint_t *ep) {
|
||||
coap_socket_close(&ep->sock);
|
||||
}
|
||||
|
||||
if (ep->context) {
|
||||
if (ep->context && ep->context->endpoint) {
|
||||
LL_DELETE(ep->context->endpoint, ep);
|
||||
}
|
||||
coap_mfree_endpoint(ep);
|
||||
|
||||
Reference in new issue
Block a user