mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
rslen is unsigned, so it can never go below 0.
This commit is contained in:
parent
b8bb15fb51
commit
0cfc80c4c3
@ -305,7 +305,7 @@ static int pkey_rsa_verify(EVP_PKEY_CTX *ctx,
|
||||
return -1;
|
||||
rslen = RSA_public_decrypt(siglen, sig, rctx->tbuf,
|
||||
rsa, rctx->pad_mode);
|
||||
if (rslen <= 0)
|
||||
if (rslen == 0)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user