From: Richard Levitte Date: Mon, 11 Sep 2000 22:15:53 +0000 (+0000) Subject: cswift_dsa_verify() incorrectly return -1 on error. X-Git-Tag: OpenSSL-engine-0_9_6-beta2~15 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dc005a73673b8c90422d8de9e960619ed68cbcde;p=oweals%2Fopenssl.git cswift_dsa_verify() incorrectly return -1 on error. --- diff --git a/crypto/engine/hw_cswift.c b/crypto/engine/hw_cswift.c index 77608b8983..3818e1ca85 100644 --- a/crypto/engine/hw_cswift.c +++ b/crypto/engine/hw_cswift.c @@ -696,7 +696,7 @@ static int cswift_dsa_verify(const unsigned char *dgst, int dgst_len, BIGNUM *dsa_g = NULL; BIGNUM *dsa_key = NULL; BIGNUM *argument = NULL; - int to_return = -1; + int to_return = 0; /* Expect failure */ int acquired = 0; if((ctx = BN_CTX_new()) == NULL)