summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authordlenev@mysql.com <>2005-12-24 20:13:51 +0300
committerdlenev@mysql.com <>2005-12-24 20:13:51 +0300
commit15c86158a7514131c43066a0808bf359546a4c22 (patch)
tree98fa99bfff1491e01070d24e8d05941d68a44ee3 /extra
parent795f744c5f1ba2d427128a7ecd3e12f1fe3cc0ff (diff)
parent74ca27b305b567e243b96f82dcc381bdc9ad8dba (diff)
downloadmariadb-git-15c86158a7514131c43066a0808bf359546a4c22.tar.gz
Merge mysql.com:/home/dlenev/src/mysql-5.0-bg14836
into mysql.com:/home/dlenev/src/mysql-5.1-merges
Diffstat (limited to 'extra')
-rw-r--r--extra/yassl/src/handshake.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/extra/yassl/src/handshake.cpp b/extra/yassl/src/handshake.cpp
index 45dfb6fa032..d7df438b8df 100644
--- a/extra/yassl/src/handshake.cpp
+++ b/extra/yassl/src/handshake.cpp
@@ -656,7 +656,11 @@ DoProcessReply(SSL& ssl, mySTL::auto_ptr<input_buffer> buffered)
{
ssl.getSocket().wait(); // wait for input if blocking
uint ready = ssl.getSocket().get_ready();
- if (!ready) return buffered;
+ if (!ready) {
+ // Nothing to receive after blocking wait => error
+ ssl.SetError(receive_error);
+ return buffered= null_buffer;
+ }
// add buffered data if its there
uint buffSz = buffered.get() ? buffered.get()->get_size() : 0;