Remove some duplicate DTLS code.
authorAdam Langley <agl@imperialviolet.org>
Fri, 6 Jun 2014 21:47:07 +0000 (14:47 -0700)
committerMatt Caswell <matt@openssl.org>
Wed, 6 Aug 2014 19:36:40 +0000 (20:36 +0100)
commit4f2011d981c2489b10e174cbda28a20303f655d1
tree1141b885fde8904e86f7a1a7c9679410db5645c6
parentf6663338cb0f5c21b8635d0b84d69554b0f51b56
Remove some duplicate DTLS code.

In a couple of functions, a sequence number would be calculated twice.

Additionally, in |dtls1_process_out_of_seq_message|, we know that
|frag_len| <= |msg_hdr->msg_len| so the later tests for |frag_len <
msg_hdr->msg_len| can be more clearly written as |frag_len !=
msg_hdr->msg_len|, since that's the only remaining case.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Emilia Käsper <emilia@openssl.org>
ssl/d1_both.c