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 9f4a2ca..6d21b50 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;
                }