forked from wolfSSL/wolfssl
Merge pull request #5426 from rizlik/epoch_bits_fix
fix: dtls13: use correct buffer index to get epoch bits
This commit is contained in:
@ -9701,7 +9701,7 @@ static int GetDtls13RecordHeader(WOLFSSL* ssl, const byte* input,
|
|||||||
if (readSize < DTLS_UNIFIED_HEADER_MIN_SZ)
|
if (readSize < DTLS_UNIFIED_HEADER_MIN_SZ)
|
||||||
return BUFFER_ERROR;
|
return BUFFER_ERROR;
|
||||||
|
|
||||||
epochBits = *input & EE_MASK;
|
epochBits = *(input + *inOutIdx) & EE_MASK;
|
||||||
ret = Dtls13ReconstructEpochNumber(ssl, epochBits, &epochNumber);
|
ret = Dtls13ReconstructEpochNumber(ssl, epochBits, &epochNumber);
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user