mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-06 02:37:10 +02:00
bdaa183014
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20592 3c298f89-4303-0410-b956-a3cf2f4a3e73
16 lines
533 B
Diff
16 lines
533 B
Diff
--- a/ssl/s3_pkt.c
|
|
+++ b/ssl/s3_pkt.c
|
|
@@ -291,9 +291,9 @@ again:
|
|
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;
|
|
}
|