summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2018-05-21 10:28:16 -0400
committerRich Salz <rsalz@openssl.org>2018-05-21 10:28:16 -0400
commit8e51a340f40fc80331ddac19203ef7a3e7e02d1a (patch)
treec9ea283b1ef62609bc28f6a250df55862e16b7db
parentee94ec2ef88e0ec25dedf2829d8e48dff0aa1c50 (diff)
Check malloc failure via app_malloc
Thanks to GitHUb user murugesandins for reporting this. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/6322)
-rw-r--r--apps/speed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/speed.c b/apps/speed.c
index c0a34ee994..e5132631cf 100644
--- a/apps/speed.c
+++ b/apps/speed.c
@@ -3152,7 +3152,7 @@ static int do_multi(int multi, int size_num)
int *fds;
static char sep[] = ":";
- fds = malloc(sizeof(*fds) * multi);
+ fds = app_malloc(sizeof(*fds) * multi, "fd buffer for do_multi");
for (n = 0; n < multi; ++n) {
if (pipe(fd) == -1) {
BIO_printf(bio_err, "pipe failure\n");