Fix SSL_export_keying_material() for DTLS1_BAD_VER
authorDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 8 Jul 2016 19:46:07 +0000 (20:46 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 26 Aug 2016 12:44:11 +0000 (13:44 +0100)
commitdf426c06919e9d30fa9b226c15d24a25c2b90c93
treec02cbd38fdddaff6a1885ca90b1448883c0dc85b
parent847fe929108da550b506594f52fa1875ea815723
Fix SSL_export_keying_material() for DTLS1_BAD_VER

Commit d8e8590e ("Fix missing return value checks in SCTP") made the
DTLS handshake fail, even for non-SCTP connections, if
SSL_export_keying_material() fails. Which it does, for DTLS1_BAD_VER.

Apply the trivial fix to make it succeed, since there's no real reason
why it shouldn't even though we never need it.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(cherry picked from commit c8a18468caef4d62778381be0acdadc8a88d6e51)
ssl/ssl_lib.c