From 47e15d30a5025d644424afccf2e97bb3ba7a4652 Mon Sep 17 00:00:00 2001 From: Matthew Endsley Date: Wed, 3 Feb 2021 14:27:33 -0800 Subject: [PATCH] Fix outgoing sequence numbers from DTLS connection listener --- Hazel/Dtls/DtlsConnectionListener.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Hazel/Dtls/DtlsConnectionListener.cs b/Hazel/Dtls/DtlsConnectionListener.cs index b5a68c6..088dcb7 100644 --- a/Hazel/Dtls/DtlsConnectionListener.cs +++ b/Hazel/Dtls/DtlsConnectionListener.cs @@ -1206,7 +1206,7 @@ namespace Hazel.Dtls Record outgoingRecord = new Record(); outgoingRecord.ContentType = ContentType.ApplicationData; outgoingRecord.Epoch = peer.Epoch; - outgoingRecord.SequenceNumber = peer.CurrentEpoch.NextExpectedSequence; + outgoingRecord.SequenceNumber = peer.CurrentEpoch.NextOutgoingSequence; outgoingRecord.Length = (ushort)peer.CurrentEpoch.RecordProtection.GetEncryptedSize(span.Length); ++peer.CurrentEpoch.NextOutgoingSequence; -- 2.39.5