summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
809dc28)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
/* Alloc group list of the right size */
grp_list = malloc(grp_list_size * sizeof(gid_t));
/* Alloc group list of the right size */
grp_list = malloc(grp_list_size * sizeof(gid_t));
+ if (!grp_list) {
+ ret = -1;
+ goto end;
+ }
grp_id = getgroups(grp_list_size, grp_list);
if (grp_id < -1) {
perror("getgroups");
grp_id = getgroups(grp_list_size, grp_list);
if (grp_id < -1) {
perror("getgroups");