mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-05 00:35:14 +00:00
Don't try to delref a NULL group.
This commit is contained in:
@@ -708,6 +708,7 @@ user_in_group(struct passwd *pw, const char *group)
|
||||
#endif /* HAVE_MBR_CHECK_MEMBERSHIP */
|
||||
|
||||
done:
|
||||
gr_delref(grp);
|
||||
if (grp != NULL)
|
||||
gr_delref(grp);
|
||||
return(retval);
|
||||
}
|
||||
|
Reference in New Issue
Block a user