From 652d1db675ca9bd3b41914649dd4e61f32c238e6 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Mon, 9 Mar 2015 23:25:20 +0700 Subject: Port of DTLS tests from Java --- crypto/src/crypto/tls/DtlsReliableHandshake.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crypto/src') diff --git a/crypto/src/crypto/tls/DtlsReliableHandshake.cs b/crypto/src/crypto/tls/DtlsReliableHandshake.cs index bf9e61d03..8e4439e67 100644 --- a/crypto/src/crypto/tls/DtlsReliableHandshake.cs +++ b/crypto/src/crypto/tls/DtlsReliableHandshake.cs @@ -114,17 +114,17 @@ namespace Org.BouncyCastle.Crypto.Tls { for (; ; ) { - int Received = mRecordLayer.Receive(buf, 0, receiveLimit, readTimeoutMillis); - if (Received < 0) + int received = mRecordLayer.Receive(buf, 0, receiveLimit, readTimeoutMillis); + if (received < 0) { break; } - if (Received < 12) + if (received < 12) { continue; } int fragment_length = TlsUtilities.ReadUint24(buf, 9); - if (Received != (fragment_length + 12)) + if (received != (fragment_length + 12)) { continue; } -- cgit 1.4.1