From 2a00e489122f6c4b525090dbdba2855a2ea2d519 Mon Sep 17 00:00:00 2001 From: marha Date: Mon, 20 Apr 2015 22:51:55 +0200 Subject: Upgraded to openssl 1.0.2a --- openssl/apps/cms.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'openssl/apps/cms.c') diff --git a/openssl/apps/cms.c b/openssl/apps/cms.c index 2c8ada60b..2c922537c 100644 --- a/openssl/apps/cms.c +++ b/openssl/apps/cms.c @@ -463,6 +463,10 @@ int MAIN(int argc, char **argv) if (key_param == NULL || key_param->idx != keyidx) { cms_key_param *nparam; nparam = OPENSSL_malloc(sizeof(cms_key_param)); + if(!nparam) { + BIO_printf(bio_err, "Out of memory\n"); + goto argerr; + } nparam->idx = keyidx; nparam->param = sk_OPENSSL_STRING_new_null(); nparam->next = NULL; -- cgit v1.2.3