rslen is unsigned, so it can never go below 0.
authorRichard Levitte <levitte@openssl.org>
Sun, 28 May 2006 19:36:29 +0000 (19:36 +0000)
committerRichard Levitte <levitte@openssl.org>
Sun, 28 May 2006 19:36:29 +0000 (19:36 +0000)
crypto/rsa/rsa_pmeth.c

index 9f4a2ca336abd16204a0a14c5a49ad188e46389e..6d21b50d6d19ed8386bc9f02f45e097b99deb402 100644 (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;
                }