[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/network/ktorrent/libktorrent/mse
From: Joris Guisson <joris.guisson () gmail ! com>
Date: 2006-06-21 17:21:44
Message-ID: 1150910504.771422.23315.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 553679 by guisson:
Fixed crash in encrypted authentication
M +5 -0 encryptedauthenticate.cpp
M +1 -1 encryptedserverauthenticate.cpp
--- trunk/extragear/network/ktorrent/libktorrent/mse/encryptedauthenticate.cpp #553678:553679
@@ -259,6 +259,11 @@
Uint32 ba = sock->bytesAvailable();
+ if (ba == 0)
+ {
+ onFinish(false);
+ return;
+ }
if (state != NORMAL_HANDSHAKE)
{
--- trunk/extragear/network/ktorrent/libktorrent/mse/encryptedserverauthenticate.cpp #553678:553679
@@ -70,7 +70,7 @@
void EncryptedServerAuthenticate::findReq1()
{
- if (buf_size - 20 <= 0) // safety check
+ if (buf_size < 116) // safety check
return;
//Out() << "Find Req1" << endl;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic