Submitted by: Martin Kaiser <lists@kaiser.cx> Approved by: steve@openssl.org Handle NULL passing in parameter and BN_CTX_new() error correctly.