Fix DTLS1_BAD_VER regression
authorMatt Caswell <matt@openssl.org>
Mon, 2 Mar 2015 14:34:19 +0000 (14:34 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 9 Mar 2015 10:54:06 +0000 (10:54 +0000)
commitae3fcdf1e5865b709aed4e66924197bc6191fc5b
treec8a35f04f5e82961ca173032ca2084606f6d6db0
parentd6ca1cee8b6efac5906ac66443d1ca67fe689ff8
Fix DTLS1_BAD_VER regression

Commit 9cf0f187 in HEAD, and 68039af3 in 1.0.2, removed a version check
from dtls1_buffer_message() which was needed to distinguish between DTLS
1.x and Cisco's pre-standard version of DTLS (DTLS1_BAD_VER).

Based on an original patch by David Woodhouse <dwmw2@infradead.org>
RT#3703

Reviewed-by: Tim Hudson <tjh@openssl.org>
(cherry picked from commit 5178a16c4375471d25e1f5ef5de46febb62a5529)
ssl/d1_both.c