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;
|
return -1;
|
||||||
rslen = RSA_public_decrypt(siglen, sig, rctx->tbuf,
|
rslen = RSA_public_decrypt(siglen, sig, rctx->tbuf,
|
||||||
rsa, rctx->pad_mode);
|
rsa, rctx->pad_mode);
|
||||||
if (rslen <= 0)
|
if (rslen == 0)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user