"Stale pointer" to peers
Status: Alpha
Brought to you by:
obgm
When peers are destroyed using dtls_destroy_peer, those peers must be also deleted from the peers collection and the retransmission queue. Otherwise the collections may contain stale pointer which breaks the application after some time.
(Therefore "HASH_DELETE" may also check the "head" for being valid (not NULL).)
Proposal to fix the stale pointers.
Fixed in 20225aa and a220767 (this moves the NULL pointer check to dtls.c to avoid losing it when uthash.h is updated). These changes are currently in branch develop.