runas_pw can no longer be NULL

This commit is contained in:
Todd C. Miller
2016-09-19 06:08:00 -06:00
parent 25f90b4811
commit 1bccd14180

View File

@@ -243,7 +243,7 @@ runaslist_matches(const struct member_list *user_list,
}
}
if (group_matched == UNSPEC) {
if (runas_pw != NULL && runas_pw->pw_gid == runas_gr->gr_gid)
if (runas_pw->pw_gid == runas_gr->gr_gid)
group_matched = ALLOW; /* runas group matches passwd db */
}
}