diff options
author | Nils Larsch <nils@openssl.org> | 2006-03-15 18:45:43 +0100 |
---|---|---|
committer | Nils Larsch <nils@openssl.org> | 2006-03-15 18:45:43 +0100 |
commit | 67b6f1ca889d789e04c58e5b2fbad0944bb1cd1a (patch) | |
tree | 9a367d762cfb0e55a2b8d224d8e7e1928089387c /crypto/dsa | |
parent | tlsext_ecpointformatlist_length is unsigned, so check if it's less (diff) | |
download | openssl-67b6f1ca889d789e04c58e5b2fbad0944bb1cd1a.tar.xz openssl-67b6f1ca889d789e04c58e5b2fbad0944bb1cd1a.zip |
fix problems found by coverity: remove useless code
Diffstat (limited to 'crypto/dsa')
-rw-r--r-- | crypto/dsa/dsa_ossl.c | 4 | ||||
-rw-r--r-- | crypto/dsa/dsatest.c | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/crypto/dsa/dsa_ossl.c b/crypto/dsa/dsa_ossl.c index 3fd8a35613..9d90178006 100644 --- a/crypto/dsa/dsa_ossl.c +++ b/crypto/dsa/dsa_ossl.c @@ -281,8 +281,8 @@ err: if (!ret) { DSAerr(DSA_F_DSA_SIGN_SETUP,ERR_R_BN_LIB); - if (kinv != NULL) BN_clear_free(kinv); - if (r != NULL) BN_clear_free(r); + if (r != NULL) + BN_clear_free(r); } if (ctx_in == NULL) BN_CTX_free(ctx); if (kinv != NULL) BN_clear_free(kinv); diff --git a/crypto/dsa/dsatest.c b/crypto/dsa/dsatest.c index 912317bb44..5a699ca5d3 100644 --- a/crypto/dsa/dsatest.c +++ b/crypto/dsa/dsatest.c @@ -169,7 +169,6 @@ int main(int argc, char **argv) } BIO_printf(bio_err,"\ncounter=%d h=%ld\n",counter,h); - if (dsa == NULL) goto end; DSA_print(bio_err,dsa,0); if (counter != 105) { |