Fix sudo_getgrgid reference count bug when gid doesn't exist.
This one was missed when the other user/group lookup functions were fixed.
This commit is contained in:
@@ -561,7 +561,8 @@ done:
|
|||||||
item->d.gr ? item->d.gr->gr_name : "unknown",
|
item->d.gr ? item->d.gr->gr_name : "unknown",
|
||||||
item->registry, node ? "cache hit" : "cached");
|
item->registry, node ? "cache hit" : "cached");
|
||||||
}
|
}
|
||||||
item->refcnt++;
|
if (item->d.gr != NULL)
|
||||||
|
item->refcnt++;
|
||||||
debug_return_ptr(item->d.gr);
|
debug_return_ptr(item->d.gr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user