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:27:51 +0000 (20:27 +0100)
commit4e0fbdc4ecc81c99cd9e63f907039b4b323e642b
treed0b037bd3b234dc3d370b76e43185a6b392f2f96
parent0c37aed3f327782645d68964cd7a714df6b8880d
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