cyassl/cyassl — pull request #84 by JonasNorling (2014-06-04 11:37:18+00:00)
Title: DTLS bug fix: Use same sequence number calculation in tls.c and internal.c

The DTLS sequence number used when decrypting CCM/GCM was taken from
the internal state, instead of from the actual message record.

If any DTLS messages were dropped, the expectation of the next
sequence number was wrong. This lead to a failed MAC check on the next
message to arrive, and an alert was generated.