From e071de8a60d26114797dfa702f80d821e54b6dce Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Tue, 5 May 2015 18:47:59 +0200 Subject: [PATCH] Fixed issue #110: wrong number of bytes returned. --- src/vmime/net/tls/openssl/TLSSocket_OpenSSL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vmime/net/tls/openssl/TLSSocket_OpenSSL.cpp b/src/vmime/net/tls/openssl/TLSSocket_OpenSSL.cpp index 7ead54b9..4f61e355 100644 --- a/src/vmime/net/tls/openssl/TLSSocket_OpenSSL.cpp +++ b/src/vmime/net/tls/openssl/TLSSocket_OpenSSL.cpp @@ -547,7 +547,7 @@ int TLSSocket_OpenSSL::bio_write(BIO* bio, const char* buf, int len) return -1; } - return static_cast (len); + return static_cast (n); } catch (exception& e) {