Skip to content

Commit

Permalink
OpenSSL - Quickly patch openssl issue
Browse files Browse the repository at this point in the history
Submitted-by: Peter Avalos <pavalos@theshell.com>
  • Loading branch information
Matthew Dillon committed Mar 27, 2010
1 parent e7b75ee commit f759e33
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crypto/openssl/ssl/s3_pkt.c
Expand Up @@ -291,9 +291,10 @@ static int ssl3_get_record(SSL *s)
if (version != s->version)
{
SSLerr(SSL_F_SSL3_GET_RECORD,SSL_R_WRONG_VERSION_NUMBER);
/* Send back error using their
* version number :-) */
s->version=version;
if ((s->version & 0xFF00) == (version & 0xFF00))
/* Send back error using their minor version number :-) */

s->version = (unsigned short)version;
al=SSL_AD_PROTOCOL_VERSION;
goto f_err;
}
Expand Down

0 comments on commit f759e33

Please sign in to comment.