Fix SSL_export_keying_material() for DTLS1_BAD_VER
Commitd8e8590e
("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 commitc8a18468ca
)
This commit is contained in:
parent
847fe92910
commit
df426c0691
1 changed files with 1 additions and 1 deletions
|
@ -1828,7 +1828,7 @@ int SSL_export_keying_material(SSL *s, unsigned char *out, size_t olen,
|
|||
const unsigned char *p, size_t plen,
|
||||
int use_context)
|
||||
{
|
||||
if (s->version < TLS1_VERSION)
|
||||
if (s->version < TLS1_VERSION && s->version != DTLS1_BAD_VER)
|
||||
return -1;
|
||||
|
||||
return s->method->ssl3_enc->export_keying_material(s, out, olen, label,
|
||||
|
|
Loading…
Reference in a new issue