diff options
Diffstat (limited to 'crypto/src/tls/DtlsReliableHandshake.cs')
-rw-r--r-- | crypto/src/tls/DtlsReliableHandshake.cs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/crypto/src/tls/DtlsReliableHandshake.cs b/crypto/src/tls/DtlsReliableHandshake.cs index 1d35cf2ce..32c5c7851 100644 --- a/crypto/src/tls/DtlsReliableHandshake.cs +++ b/crypto/src/tls/DtlsReliableHandshake.cs @@ -539,16 +539,11 @@ namespace Org.BouncyCastle.Tls internal void SendToRecordLayer(DtlsRecordLayer recordLayer) { -#if PORTABLE - byte[] buf = ToArray(); - int bufLen = buf.Length; -#else byte[] buf = GetBuffer(); - int bufLen = (int)Length; -#endif + int bufLen = Convert.ToInt32(Length); recordLayer.Send(buf, 0, bufLen); - Platform.Dispose(this); + Dispose(); } } |