diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-12-01 18:41:50 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-12-01 18:41:50 +0000 |
commit | 6125e07d794624b01a5261cb567a9bbf60e53637 (patch) | |
tree | ff49ad192371744748c8bc7effabd6c18808e45d /crypto/dsa | |
parent | d5b8c464991797946aca0f3c5c42ddcd5cd8f7df (diff) |
check DSA_sign() return value properly
Diffstat (limited to 'crypto/dsa')
-rw-r--r-- | crypto/dsa/dsa_pmeth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/dsa/dsa_pmeth.c b/crypto/dsa/dsa_pmeth.c index 84b77e3bfc..4ce91e20c6 100644 --- a/crypto/dsa/dsa_pmeth.c +++ b/crypto/dsa/dsa_pmeth.c @@ -132,7 +132,7 @@ static int pkey_dsa_sign(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, ret = DSA_sign(type, tbs, tbslen, sig, &sltmp, dsa); - if (ret < 0) + if (ret <= 0) return ret; *siglen = sltmp; return 1; |