diff options
Diffstat (limited to '')
| -rw-r--r-- | src/usr.bin/openssl/speed.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/speed.c b/src/usr.bin/openssl/speed.c index b9eca831ff..e40607f940 100644 --- a/src/usr.bin/openssl/speed.c +++ b/src/usr.bin/openssl/speed.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: speed.c,v 1.3 2015/01/02 04:00:21 lteo Exp $ */ | 1 | /* $OpenBSD: speed.c,v 1.4 2015/01/03 03:03:39 lteo Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -1998,6 +1998,10 @@ do_multi(int multi) | |||
| 1998 | const char *errstr = NULL; | 1998 | const char *errstr = NULL; |
| 1999 | 1999 | ||
| 2000 | fds = reallocarray(NULL, multi, sizeof *fds); | 2000 | fds = reallocarray(NULL, multi, sizeof *fds); |
| 2001 | if (fds == NULL) { | ||
| 2002 | fprintf(stderr, "reallocarray failure\n"); | ||
| 2003 | exit(1); | ||
| 2004 | } | ||
| 2001 | for (n = 0; n < multi; ++n) { | 2005 | for (n = 0; n < multi; ++n) { |
| 2002 | if (pipe(fd) == -1) { | 2006 | if (pipe(fd) == -1) { |
| 2003 | fprintf(stderr, "pipe failure\n"); | 2007 | fprintf(stderr, "pipe failure\n"); |
