Skip to content

Commit f738840

Browse files
committed
Fixes for unused values
1 parent bf8c26f commit f738840

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/wh_server_crypto.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,11 +1759,6 @@ static int _HandleSha256(whServerContext* ctx, uint16_t magic,
17591759
return ret;
17601760
}
17611761

1762-
/* Validate lastBlockLen to prevent potential buffer overread */
1763-
if (req.lastBlockLen > WC_SHA256_BLOCK_SIZE) {
1764-
return WH_ERROR_BADARGS;
1765-
}
1766-
17671762
/* Init the SHA256 context if this is the first time, otherwise restore the
17681763
* hash state from the client */
17691764
if (req.resumeState.hiLen == 0 && req.resumeState.loLen == 0) {

0 commit comments

Comments
 (0)