From 0cfc80c4c3c615ba93f52fb7b9039633ecff4580 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Sun, 28 May 2006 19:36:29 +0000 Subject: [PATCH] rslen is unsigned, so it can never go below 0. --- crypto/rsa/rsa_pmeth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/rsa/rsa_pmeth.c b/crypto/rsa/rsa_pmeth.c index 9f4a2ca336..6d21b50d6d 100644 --- a/crypto/rsa/rsa_pmeth.c +++ b/crypto/rsa/rsa_pmeth.c @@ -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; } -- 2.25.1