Merge pull request #5426 from rizlik/epoch_bits_fix

fix: dtls13: use correct buffer index to get epoch bits
This commit is contained in:
David Garske
2022-08-01 07:41:44 -07:00
committed by GitHub

View File

@ -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;