Fix OpenSSL_memdup error handling
authorInsu Yun <wuninsu@gmail.com>
Thu, 5 May 2016 15:39:16 +0000 (11:39 -0400)
committerMatt Caswell <matt@openssl.org>
Fri, 13 May 2016 15:44:55 +0000 (16:44 +0100)
commitedeb3fd2955c42c3e249a0539ef75c21db8c5ca1
tree5afc6e726ea3b4f4be6a5f96fc557ed3474e64fa
parent1563102bbd6b76d903942c4ca42c5bbdd6ecc765
Fix OpenSSL_memdup error handling

check source's kdf_ukm, not destination's

use != NULL, instead of implicit checking

don't free internal data structure like pkey_rsa_copy()

Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
crypto/dh/dh_pmeth.c