]> granicus.if.org Git - sudo/commitdiff
runas_pw can no longer be NULL
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 19 Sep 2016 12:08:00 +0000 (06:08 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 19 Sep 2016 12:08:00 +0000 (06:08 -0600)
plugins/sudoers/match.c

index 89495910195d4d1977344baa8b5f722238d00bbd..1916bdef6c6cbbb26493ee840db81306081f6385 100644 (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 */
        }
     }