From 832cad3b8a35616439317e334dcd617dc0a6a5b5 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Fri, 2 Sep 2022 15:38:59 +0700 Subject: FIx return value for empty read --- crypto/src/tls/TlsProtocol.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/src/tls/TlsProtocol.cs') diff --git a/crypto/src/tls/TlsProtocol.cs b/crypto/src/tls/TlsProtocol.cs index dbbb6e0f5..b5a955bed 100644 --- a/crypto/src/tls/TlsProtocol.cs +++ b/crypto/src/tls/TlsProtocol.cs @@ -717,7 +717,7 @@ namespace Org.BouncyCastle.Tls if (this.m_failedWithError) throw new IOException("Cannot read application data on failed TLS connection"); - return -1; + return 0; } /* -- cgit 1.4.1