summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2005-09-15 11:24:28 +0200
committerunknown <msvensson@neptunus.(none)>2005-09-15 11:24:28 +0200
commit268b309dc0eb1f53281766b4ff5c85eac84b6605 (patch)
tree61963c2ee9d9f4bec3273f8cea4a450e1af49681
parent1981fe4543c3d2ded5f2d426c49243893cce6ba3 (diff)
parentd4ab36d4f9a12502a9ddde3e1b7848472eacd6e7 (diff)
downloadmariadb-git-268b309dc0eb1f53281766b4ff5c85eac84b6605.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into neptunus.(none):/home/msvensson/mysql/bug13029/my50-bug13029
-rw-r--r--extra/yassl/src/ssl.cpp18
1 files changed, 15 insertions, 3 deletions
diff --git a/extra/yassl/src/ssl.cpp b/extra/yassl/src/ssl.cpp
index d37c44049b2..8cea205377e 100644
--- a/extra/yassl/src/ssl.cpp
+++ b/extra/yassl/src/ssl.cpp
@@ -171,13 +171,25 @@ int SSL_accept(SSL* ssl)
sendServerHelloDone(*ssl);
ssl->flushBuffer();
- processReply(*ssl);
+ // Java Client sends fragmented response
+ while (ssl->getStates().getServer() <
+ clientFinishedComplete) {
+ if (ssl->GetError()) break;
+ processReply(*ssl);
+ }
}
sendChangeCipher(*ssl);
sendFinished(*ssl, server_end);
ssl->flushBuffer();
- if (ssl->getSecurity().get_resuming())
- processReply(*ssl);
+ if (ssl->getSecurity().get_resuming()) {
+
+ // Java Client sends fragmented response
+ while (ssl->getStates().getServer() <
+ clientFinishedComplete) {
+ if (ssl->GetError()) break;
+ processReply(*ssl);
+ }
+ }
ssl->useLog().ShowTCP(ssl->getSocket().get_fd());