diff options
author | Nils Larsch <nils@openssl.org> | 2007-04-02 20:29:40 +0000 |
---|---|---|
committer | Nils Larsch <nils@openssl.org> | 2007-04-02 20:29:40 +0000 |
commit | 442cbb062d82ff95a391946b9a15507df2add87a (patch) | |
tree | 4f08111b58026fbdf8ceb6d1c8fc45b0c04e56a2 /crypto/dh | |
parent | c971ca4c86b0a7bb4bb7a7d1a3c183b78dfbf144 (diff) | |
download | openssl-442cbb062d82ff95a391946b9a15507df2add87a.zip openssl-442cbb062d82ff95a391946b9a15507df2add87a.tar.gz openssl-442cbb062d82ff95a391946b9a15507df2add87a.tar.bz2 |
check correct pointer before freeing it (Coverity CID 79,86)
Diffstat (limited to 'crypto/dh')
-rw-r--r-- | crypto/dh/dh_ameth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/dh/dh_ameth.c b/crypto/dh/dh_ameth.c index 0ff0fe7..420cfcd 100644 --- a/crypto/dh/dh_ameth.c +++ b/crypto/dh/dh_ameth.c @@ -117,7 +117,7 @@ static int dh_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey) return 1; err: - if (pubkey) + if (public_key) ASN1_INTEGER_free(public_key); if (dh) DH_free(dh); |