Fix things so DH_free() will be no-op when passed NULL, like RSA_free() and
authorDr. Stephen Henson <steve@openssl.org>
Wed, 6 Jan 1999 01:39:24 +0000 (01:39 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 6 Jan 1999 01:39:24 +0000 (01:39 +0000)
commitad65ce755ea292df565a50e730e4210a3e732f4e
tree3935dd7109ea178fb4d9e6b5061ab51cffaa08ba
parente416ad9772df448635e91bb6153bf811aede13b3
Fix things so DH_free() will be no-op when passed NULL, like RSA_free() and
DSA_free(): this was causing crashes when for example an attempt was made
to handle a (currently) unsupported DH public key. Also X509_PUBKEY_set()i
wasn't checking errors from d2i_PublicKey().
CHANGES
crypto/asn1/x_pubkey.c
crypto/dh/dh_lib.c