mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
fix: dtls13: use correct buffer index to get epoch bits
Fixes: d079662765
This commit is contained in:
@ -9701,7 +9701,7 @@ static int GetDtls13RecordHeader(WOLFSSL* ssl, const byte* input,
|
||||
if (readSize < DTLS_UNIFIED_HEADER_MIN_SZ)
|
||||
return BUFFER_ERROR;
|
||||
|
||||
epochBits = *input & EE_MASK;
|
||||
epochBits = *(input + *inOutIdx) & EE_MASK;
|
||||
ret = Dtls13ReconstructEpochNumber(ssl, epochBits, &epochNumber);
|
||||
if (ret != 0)
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user