summary refs log tree commit diff
path: root/crypto/src/tls/DtlsRecordLayer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/tls/DtlsRecordLayer.cs')
-rw-r--r--crypto/src/tls/DtlsRecordLayer.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/src/tls/DtlsRecordLayer.cs b/crypto/src/tls/DtlsRecordLayer.cs
index 860c2dc31..e68470adb 100644
--- a/crypto/src/tls/DtlsRecordLayer.cs
+++ b/crypto/src/tls/DtlsRecordLayer.cs
@@ -681,6 +681,11 @@ namespace Org.BouncyCastle.Tls
                 if (!Arrays.FixedTimeEquals(connectionID.Length, connectionID, 0, record, 11))
                     return -1;
             }
+            else
+            {
+                if (ContentType.tls12_cid == recordType)
+                    return -1;
+            }
 
             int length = TlsUtilities.ReadUint16(record, recordHeaderLength - 2);
             if (received != (length + recordHeaderLength))