Don't try to delref a NULL group.

This commit is contained in:
Todd C. Miller
2010-09-13 11:08:04 -04:00
parent 1490269899
commit 933c71e9c3

View File

@@ -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);
}