Menu

#14 "Stale pointer" to peers

1.0
closed
None
2015-04-21
2015-03-24
Achim Kraus
No

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).)

Discussion

  • Olaf Bergmann

    Olaf Bergmann - 2015-03-24
    • status: open --> accepted
    • assigned_to: Olaf Bergmann
     
  • Achim Kraus

    Achim Kraus - 2015-04-21

    Proposal to fix the stale pointers.

     
  • Olaf Bergmann

    Olaf Bergmann - 2015-04-21
    • status: accepted --> closed
     
  • Olaf Bergmann

    Olaf Bergmann - 2015-04-21

    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.

     
MongoDB Logo MongoDB