Fix an Uninit read in DTLS
authorMatt Caswell <matt@openssl.org>
Wed, 28 Sep 2016 13:12:26 +0000 (14:12 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 29 Sep 2016 09:00:52 +0000 (10:00 +0100)
commit61b1eb2c67542c85311843300f49d019f80afc6c
treeed934dd71dab08235339ab40942e0944587e792a
parentdd63da7032c655afcc80b82c38f2805b8f9476cf
Fix an Uninit read in DTLS

If we have a handshake fragment waiting then dtls1_read_bytes() was not
correctly setting the value of recvd_type, leading to an uninit read.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit 2f2d6e3e3ccd1ae7bba9f1af62f97dfca986e083)
ssl/record/rec_layer_d1.c