summary refs log tree commit diff
path: root/crypto/src/tls/TlsUtilities.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/tls/TlsUtilities.cs')
-rw-r--r--crypto/src/tls/TlsUtilities.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/tls/TlsUtilities.cs b/crypto/src/tls/TlsUtilities.cs

index 9a8665cf5..252c385e1 100644 --- a/crypto/src/tls/TlsUtilities.cs +++ b/crypto/src/tls/TlsUtilities.cs
@@ -4647,7 +4647,7 @@ namespace Org.BouncyCastle.Tls internal static short[] Truncate(short[] a, int n) { - if (n < a.Length) + if (n >= a.Length) return a; short[] t = new short[n];