rslen is unsigned, so it can never go below 0.

This commit is contained in:
Richard Levitte 2006-05-28 19:36:29 +00:00
parent b8bb15fb51
commit 0cfc80c4c3

View File

@ -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;
}