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:02 +0000 (17:23 +0200)
commit4dcdde120bac79979d1ce63cc652e7b53fab4f49
treeb0984d05b42f97e0f1f9fa2042bf583edbb31439
parent7b8a9992021c496df1826ca29f65c366b544689c
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