1 diff --git openssl-0.9.8m/ssl/s3_pkt.c openssl-0.9.8m/ssl/s3_pkt.c 2 index b4abc11..5964c1d 100644 3 --- openssl-0.9.8m/ssl/s3_pkt.c 4 +++ openssl-0.9.8m/ssl/s3_pkt.c 5 @@ -292,9 +292,10 @@ again: 6 if (version != s->version) 7 { 8 SSLerr(SSL_F_SSL3_GET_RECORD,SSL_R_WRONG_VERSION_NUMBER); 9 - /* Send back error using their 10 - * version number :-) */ 11 - s->version=version; 12 + /* If the major versions match then we'll send 13 + * the error back using the peer's version. */ 14 + if ((s->version & 0xFF00) == (version & 0xFF00)) 15 + s->version = version; 16 al=SSL_AD_PROTOCOL_VERSION; 17 goto f_err; 18 } 19