From: Todd C. Miller Date: Thu, 15 Sep 2016 15:40:41 +0000 (-0600) Subject: runas_pw can no longer be NULL here X-Git-Tag: SUDO_1_8_18^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2af18c1fadb9f0de5de489968e4f3d011e678c6;p=sudo runas_pw can no longer be NULL here --- diff --git a/plugins/sudoers/match.c b/plugins/sudoers/match.c index 982a3ff96..8bc06c3ed 100644 --- a/plugins/sudoers/match.c +++ b/plugins/sudoers/match.c @@ -216,7 +216,7 @@ runaslist_matches(const struct member_list *user_list, */ if (runas_gr != NULL) { if (user_matched == UNSPEC) { - if (runas_pw == NULL || strcmp(runas_pw->pw_name, user_name) == 0) + if (strcmp(runas_pw->pw_name, user_name) == 0) user_matched = ALLOW; /* only changing group */ } if (group_list != NULL) {