Skip to content

Commit 7255ae6

Browse files
author
Robert Golebiowski
committed
Bug #20774956: THREAD_POOL.THREAD_POOL_CONNECT HANGS WHEN RUN ON A
YASSL-COMPILED SERVER/CLIENT Description: thread_pool.thread_pool_connect hangs when the server and client are compiled with yaSSL. Bug-fix: Test thread_pool.thread_pool_connect was temporary disabled for yaSSL. However, now that yaSSL is fixed it runs OK. The bug was introduced by one of the yaSSL updates. set_current was not working for i == 0. Now this is fixed. YASSL is updated to 2.3.7d
1 parent e7ff204 commit 7255ae6

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

extra/yassl/README

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ before calling SSL_new();
1212

1313
*** end Note ***
1414

15+
yaSSL Patch notes, version 2.3.7d (6/22/2015)
16+
This release of yaSSL includes a fix for input_buffer set_current with
17+
index 0. SSL_peek() at front of waiting data could trigger. Robert
18+
Golebiowski of Oracle identified and suggested a fix, thanks!
19+
1520
yaSSL Patch notes, version 2.3.7c (6/12/2015)
1621
This release of yaSSL does certificate DATE comparisons to the second
1722
instead of to the minute, helpful when using freshly generated certs.

extra/yassl/include/openssl/ssl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#include "rsa.h"
3636

3737

38-
#define YASSL_VERSION "2.3.7c"
38+
#define YASSL_VERSION "2.3.7d"
3939

4040

4141
#if defined(__cplusplus)

extra/yassl/src/buffer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ void input_buffer::set_error()
162162

163163
void input_buffer::set_current(uint i)
164164
{
165-
if (error_ == 0 && i && check(i - 1, size_) == 0)
165+
if (error_ == 0 && check(i ? i - 1 : 0, size_) == 0)
166166
current_ = i;
167167
else
168168
error_ = -1;

0 commit comments

Comments
 (0)