mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 03:34:39 +02:00
revert change in wc_ShaFinal() capturing InitSha() retval, introduced in 510038022f
, to (void)ed result.
This commit is contained in:
@@ -879,11 +879,7 @@ int wc_ShaFinal(wc_Sha* sha, byte* hash)
|
||||
|
||||
XMEMCPY(hash, (byte *)&sha->digest[0], WC_SHA_DIGEST_SIZE);
|
||||
|
||||
{
|
||||
int initret = InitSha(sha); /* reset state */
|
||||
if (initret < 0)
|
||||
ret = initret;
|
||||
}
|
||||
(void)InitSha(sha); /* reset state */
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user