Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK7dMtAipG-sqPP6s3M4OyCTm57f4WWGN7a3mga9wHx5OCKLug@mail.gmail.com>
Date: Fri, 1 May 2015 05:17:37 -0700
From: Kevin Bowling <kevin.bowling@...009.com>
To: musl@...ts.openwall.com
Subject: [PATCH] Return rv if memory is not 'calloc'ed in getgrent_a

>From 714875b1a614c4ac3b7a04a9d419b7f57d28e336 Mon Sep 17 00:00:00 2001
From: Kevin Bowling <kevin.bowling@...009.com>
Date: Fri, 1 May 2015 05:11:12 -0700
Subject: [PATCH] Return rv if memory is not 'calloc'ed in getgrent_a

---
 src/passwd/getgrent_a.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/passwd/getgrent_a.c b/src/passwd/getgrent_a.c
index ecd2f2e..80fbc42 100644
--- a/src/passwd/getgrent_a.c
+++ b/src/passwd/getgrent_a.c
@@ -48,7 +48,7 @@ int __getgrent_a(FILE *f, struct group *gr, char **line,
size_t *size, char ***m
                rv = errno;
                free(*line);
                *line = 0;
-               return 0;
+               return rv;
        }
        if (*mems) {
                mem[0][0] = mems;
--
2.3.7

Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.