fix: dtls13: use correct buffer index to get epoch bits
Fixes: d0796627651674c0d1c24e6f60f1fb8fb5db6665
This commit is contained in:
parent
da422eb422
commit
8878922f95
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user