aboutsummaryrefslogtreecommitdiffstats
path: root/apps/vms_decc_init.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2015-04-30 17:48:31 -0400
committerRich Salz <rsalz@openssl.org>2015-04-30 17:48:31 -0400
commit68dc682499ea3fe27d909c946d7abd39062d6efd (patch)
tree3478a6fb3699bdfa08d5871848696882ee1c24db /apps/vms_decc_init.c
parent222561fe8ef510f336417a666f69f81ddc9b8fe4 (diff)
downloadopenssl-68dc682499ea3fe27d909c946d7abd39062d6efd.tar.gz
In apps, malloc or die
No point in proceeding if you're out of memory. So change *all* OPENSSL_malloc calls in apps to use the new routine which prints a message and exits. Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'apps/vms_decc_init.c')
-rw-r--r--apps/vms_decc_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/vms_decc_init.c b/apps/vms_decc_init.c
index 1717dae37e..3ec7b54dcb 100644
--- a/apps/vms_decc_init.c
+++ b/apps/vms_decc_init.c
@@ -130,7 +130,7 @@ char **copy_argv(int *argc, char *argv[])
*/
int i, count = *argc;
- char **newargv = OPENSSL_malloc((count + 1) * sizeof *newargv);
+ char **newargv = app_malloc((count + 1) * sizeof *newargv, "argv copy");
for (i = 0; i < count; i++)
newargv[i] = argv[i];