RT3754: check for NULL pointer
authorEmilia Kasper <emilia@openssl.org>
Tue, 1 Sep 2015 14:31:55 +0000 (16:31 +0200)
committerEmilia Kasper <emilia@openssl.org>
Thu, 10 Sep 2015 15:23:33 +0000 (17:23 +0200)
commit4cb23e12a300b64dd997ca00cee75cde8925df05
treea4250de4ca4214f6bced245183a7ac3bd9461f9a
parentdd642deea83d0f5b4accee9855e36c36699653cc
RT3754: check for NULL pointer

Fix both the caller to error out on malloc failure, as well as the
eventual callee to handle a NULL gracefully.

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
crypto/evp/p_lib.c
crypto/evp/pmeth_gn.c