diff options
author | Rich Salz <rsalz@openssl.org> | 2015-04-30 17:48:31 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-04-30 17:48:31 -0400 |
commit | 68dc682499ea3fe27d909c946d7abd39062d6efd (patch) | |
tree | 3478a6fb3699bdfa08d5871848696882ee1c24db /apps/vms_decc_init.c | |
parent | 222561fe8ef510f336417a666f69f81ddc9b8fe4 (diff) | |
download | openssl-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.c | 2 |
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]; |