Skip to content
Commit d5d0a1cb authored by Matt Caswell's avatar Matt Caswell
Browse files

Ensure last_write_sequence is saved in DTLS1.2



In DTLS, immediately prior to epoch change, the write_sequence is supposed
to be stored in s->d1->last_write_sequence. The write_sequence is then reset
back to 00000000. In the event of retransmits of records from the previous
epoch, the last_write_sequence is restored. This commit fixes a bug in
DTLS1.2 where the write_sequence was being reset before last_write_sequence
was saved, and therefore retransmits are sent with incorrect sequence
numbers.

Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
parent d6407083
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment