mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
Remove redundant check for saltlen > UINT32_MAX
Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/18671)
This commit is contained in:
parent
74c929d00d
commit
05e51bc79b
@ -305,7 +305,7 @@ int ossl_DER_w_RSASSA_PSS_params(WPACKET *pkt, int tag,
|
||||
saltlen = ossl_rsa_pss_params_30_saltlen(pss);
|
||||
trailerfield = ossl_rsa_pss_params_30_trailerfield(pss);
|
||||
|
||||
if (saltlen < 0 || (unsigned int)saltlen > UINT32_MAX) {
|
||||
if (saltlen < 0) {
|
||||
ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_SALT_LENGTH);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user