mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-08 17:42:09 +03:00
Fix less-than-zero checks on unsigned numbers
This commit is contained in:
@@ -242,7 +242,7 @@ void sha512_update( sha512_context *ctx, const unsigned char *input,
|
||||
size_t fill;
|
||||
unsigned int left;
|
||||
|
||||
if( ilen <= 0 )
|
||||
if( ilen == 0 )
|
||||
return;
|
||||
|
||||
left = (unsigned int) (ctx->total[0] & 0x7F);
|
||||
|
Reference in New Issue
Block a user