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 */
|
#endif /* HAVE_MBR_CHECK_MEMBERSHIP */
|
||||||
|
|
||||||
done:
|
done:
|
||||||
gr_delref(grp);
|
if (grp != NULL)
|
||||||
|
gr_delref(grp);
|
||||||
return(retval);
|
return(retval);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user