]> git.proxmox.com Git - mirror_edk2.git/commit
CryptoPkg BaseCryptLib: Avoid passing NULL ptr to function BN_bn2bin()
authorHao Wu <hao.a.wu@intel.com>
Fri, 1 Jul 2016 07:12:40 +0000 (15:12 +0800)
committerHao Wu <hao.a.wu@intel.com>
Tue, 12 Jul 2016 00:53:19 +0000 (08:53 +0800)
commit8824c6144c73fe4b6355df6dfaee3e80e068c3b1
tree99fff53080d071c50de400394f2fd81d32c050c9
parentd8162f5b3283a06a6dc4e2e05cd0c45fc4358eb0
CryptoPkg BaseCryptLib: Avoid passing NULL ptr to function BN_bn2bin()

This commit modifies the code logic to avoid passing NULL pointer to
function BN_bn2bin().

Cc: Long Qin <qin.long@intel.com>
Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Qin Long <qin.long@intel.com>
CryptoPkg/Library/BaseCryptLib/Pk/CryptDh.c