mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-09 18:32:53 +03:00
Calling coap_free_context() does not free off any async entries, and so raises assertion errors when coming to freeing off sessions if any async entries exist. async_data_t is a union, but the size of val and ptr are not the same - so usage can have uninitialized data - hence bad timeout values. Makefile.am: Do not expose coap_delete_all*() functions. examples/coap-server.c: Fix async_data_t issue. examples/etsi_iot_01.c: Fix 32 bit compiler warnings using same logic as coap-server for holding the async timeout value. examples/lwip/Makefile: Include async.c for the LwIP build. include/coap2/async.h Define coap_delete_all_async() function. include/coap2/net.h include/coap2/resource.h Document coap_delete_all*() functions as internal. libcoap-2.map libcoap-2.sym Remove non-exposed coap_delete_all*() functions. src/async.c Provide coap_delete_all_async() function. src/net.c Call coap_delete_all_async() from within coap_free_context().