diff options
Diffstat (limited to 'crypto/src/tls/RecordStream.cs')
-rw-r--r-- | crypto/src/tls/RecordStream.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/tls/RecordStream.cs b/crypto/src/tls/RecordStream.cs index 5b5ceff34..739ee8d70 100644 --- a/crypto/src/tls/RecordStream.cs +++ b/crypto/src/tls/RecordStream.cs @@ -153,9 +153,9 @@ namespace Org.BouncyCastle.Tls var cipher = m_readCipher; int plaintextDecodeLimit; - if (cipher is AbstractTlsCipher abstractTlsCipher) + if (cipher is TlsCipherExt tlsCipherExt) { - plaintextDecodeLimit = abstractTlsCipher.GetPlaintextDecodeLimit(length); + plaintextDecodeLimit = tlsCipherExt.GetPlaintextDecodeLimit(length); } else { |