From d2af18c1fadb9f0de5de489968e4f3d011e678c6 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 15 Sep 2016 09:40:41 -0600 Subject: [PATCH] runas_pw can no longer be NULL here --- plugins/sudoers/match.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.50.1