diff options
author | madmaxoft <github@xoft.cz> | 2014-05-01 11:32:25 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-05-01 11:32:25 +0200 |
commit | e2bf3783e8c8f7855532e04203bb1b46b976cfee (patch) | |
tree | 1718d45f55920aa7c42cff58a327cba53016eb1c /src | |
parent | cSslContext supports setting own cert / privkey. (diff) | |
download | cuberite-e2bf3783e8c8f7855532e04203bb1b46b976cfee.tar cuberite-e2bf3783e8c8f7855532e04203bb1b46b976cfee.tar.gz cuberite-e2bf3783e8c8f7855532e04203bb1b46b976cfee.tar.bz2 cuberite-e2bf3783e8c8f7855532e04203bb1b46b976cfee.tar.lz cuberite-e2bf3783e8c8f7855532e04203bb1b46b976cfee.tar.xz cuberite-e2bf3783e8c8f7855532e04203bb1b46b976cfee.tar.zst cuberite-e2bf3783e8c8f7855532e04203bb1b46b976cfee.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/PolarSSL++/BufferedSslContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PolarSSL++/BufferedSslContext.cpp b/src/PolarSSL++/BufferedSslContext.cpp index 2455d5781..9f7caeb8a 100644 --- a/src/PolarSSL++/BufferedSslContext.cpp +++ b/src/PolarSSL++/BufferedSslContext.cpp @@ -26,7 +26,7 @@ size_t cBufferedSslContext::WriteIncoming(const void * a_Data, size_t a_NumBytes if (NumBytes > 0) { m_IncomingData.Write(a_Data, NumBytes); - return a_NumBytes - NumBytes; + return NumBytes; } return 0; } @@ -42,7 +42,7 @@ size_t cBufferedSslContext::ReadOutgoing(void * a_Data, size_t a_DataMaxSize) { m_OutgoingData.ReadBuf(a_Data, NumBytes); m_OutgoingData.CommitRead(); - return a_DataMaxSize - NumBytes; + return NumBytes; } return 0; } |