Commit 8e51a340 authored by Rich Salz's avatar Rich Salz
Browse files

Check malloc failure via app_malloc



Thanks to GitHUb user murugesandins for reporting this.

Reviewed-by: default avatarMatt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6322)
parent ee94ec2e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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");