diff options
author | Patrick Krämer <pkr@indeca.de> | 2023-05-10 14:58:40 +0200 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-05-11 19:42:38 +0700 |
commit | 1c582e70c83fa1a7ec3b6ccfd241c602ae73915a (patch) | |
tree | e4027f89617641025a247fadec636729aeff179e /crypto/src/tls/AbstractTlsServer.cs | |
parent | Refactoring in Picnic (diff) | |
download | BouncyCastle.NET-ed25519-1c582e70c83fa1a7ec3b6ccfd241c602ae73915a.tar.xz |
fix exception during DTLS server handshake when the client has no extensions
Diffstat (limited to 'crypto/src/tls/AbstractTlsServer.cs')
-rw-r--r-- | crypto/src/tls/AbstractTlsServer.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/tls/AbstractTlsServer.cs b/crypto/src/tls/AbstractTlsServer.cs index 9f107d905..352002fbf 100644 --- a/crypto/src/tls/AbstractTlsServer.cs +++ b/crypto/src/tls/AbstractTlsServer.cs @@ -604,7 +604,7 @@ namespace Org.BouncyCastle.Tls * RFC 9146 3. When a DTLS session is resumed or renegotiated, the "connection_id" extension is * negotiated afresh. */ - if (m_clientExtensions.ContainsKey(ExtensionType.connection_id)) + if (m_clientExtensions != null && m_clientExtensions.ContainsKey(ExtensionType.connection_id)) { var serverConnectionID = GetNewConnectionID(); if (serverConnectionID != null) |