aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs/cyassl/patches/200-SSL_accept-handle-hello-garbage.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2014-05-01 14:04:15 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2014-05-01 14:04:15 +0000
commit9be00fc25630337689d664242af84d1d92835119 (patch)
treec4d631828b2f040f728a3f96316c48ea9d7c7f5b /package/libs/cyassl/patches/200-SSL_accept-handle-hello-garbage.patch
parente2cd04bfb39f333aeaafaa87668fd364c3e42946 (diff)
downloadupstream-9be00fc25630337689d664242af84d1d92835119.tar.gz
upstream-9be00fc25630337689d664242af84d1d92835119.tar.bz2
upstream-9be00fc25630337689d664242af84d1d92835119.zip
cyassl: update to version 3.0.0
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 40621
Diffstat (limited to 'package/libs/cyassl/patches/200-SSL_accept-handle-hello-garbage.patch')
-rw-r--r--package/libs/cyassl/patches/200-SSL_accept-handle-hello-garbage.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/libs/cyassl/patches/200-SSL_accept-handle-hello-garbage.patch b/package/libs/cyassl/patches/200-SSL_accept-handle-hello-garbage.patch
index d28f4d38a1..f9a077020e 100644
--- a/package/libs/cyassl/patches/200-SSL_accept-handle-hello-garbage.patch
+++ b/package/libs/cyassl/patches/200-SSL_accept-handle-hello-garbage.patch
@@ -1,9 +1,9 @@
--- a/src/internal.c
+++ b/src/internal.c
-@@ -4622,6 +4622,10 @@ int ProcessReply(CYASSL* ssl)
+@@ -5063,6 +5063,10 @@ int ProcessReply(CYASSL* ssl)
b1 =
ssl->buffers.inputBuffer.buffer[ssl->buffers.inputBuffer.idx++];
- ssl->curSize = ((b0 & 0x7f) << 8) | b1;
+ ssl->curSize = (word16)(((b0 & 0x7f) << 8) | b1);
+
+ /* does not appear to a be a SSLv2 client hello */
+ if ( ssl->buffers.inputBuffer.buffer[ssl->buffers.inputBuffer.idx] != 1 )