Submitted by: Peter Gutmann <pgut001@cs.auckland.ac.nz> Approved by: steve@openssl.org Check return values for NULL in case of malloc failure.