contiki-ng / tinydtls

A version of tinyDTLS that is refactored to be more easy to use "standalone" (e.g. without bindings to a specific IP-stack).
Other
8 stars 25 forks source link

Added checks if a peer exists before using it #6

Closed nfi closed 6 years ago

nfi commented 6 years ago

There seems to be some corner cases where a peer can be used when it does not exist. This adds checks that a valid peer exists before it is used.