diff options
Diffstat (limited to 'crypto/src/tls/ClientHello.cs')
-rw-r--r-- | crypto/src/tls/ClientHello.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/tls/ClientHello.cs b/crypto/src/tls/ClientHello.cs index 14e8b4cde..574264491 100644 --- a/crypto/src/tls/ClientHello.cs +++ b/crypto/src/tls/ClientHello.cs @@ -142,7 +142,7 @@ namespace Org.BouncyCastle.Tls int cipher_suites_length = TlsUtilities.ReadUint16(input); if (cipher_suites_length < 2 || (cipher_suites_length & 1) != 0 - || (int)(messageInput.Length - messageInput.Position) < cipher_suites_length) + || Convert.ToInt32(messageInput.Length - messageInput.Position) < cipher_suites_length) { throw new TlsFatalAlert(AlertDescription.decode_error); } |