--- embedaddon/sudo/plugins/group_file/group_file.c 2013/07/22 00:51:38 1.1.1.1 +++ embedaddon/sudo/plugins/group_file/group_file.c 2014/06/15 16:12:54 1.1.1.2 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010-2013 Todd C. Miller + * Copyright (c) 2010-2014 Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -121,7 +121,7 @@ sample_query(const char *user, const char *group, cons char **member; grp = mygetgrnam(group); - if (grp != NULL) { + if (grp != NULL && grp->gr_mem != NULL) { for (member = grp->gr_mem; *member != NULL; member++) { if (strcasecmp(user, *member) == 0) return true;