mirror of
https://github.com/openssl/openssl.git
synced 2024-12-15 06:01:37 +08:00
jitter: avoid a signed vs unsigned comparison
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/25498)
This commit is contained in:
parent
6f08353a4b
commit
01ec59defd
@ -104,7 +104,7 @@ static size_t get_jitter_random_value(PROV_JITTER *s,
|
||||
break;
|
||||
|
||||
/* Success */
|
||||
if (result == len)
|
||||
if (result >= 0 && (size_t)result == len)
|
||||
return len;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user