GH271: Warning on </dev/null to CA.pl
[openssl.git] / apps / speed.c
index 7a694852dc8117ccced88da4ea271152ada74e00..00c7c4115e2b73beb9d061047abd256b0c3206b8 100644 (file)
@@ -2283,7 +2283,7 @@ static int do_multi(int multi)
     int *fds;
     static char sep[] = ":";
 
-    fds = malloc(multi * sizeof *fds);
+    fds = malloc(sizeof(*fds) * multi);
     for (n = 0; n < multi; ++n) {
         if (pipe(fd) == -1) {
             fprintf(stderr, "pipe failure\n");