Wire up invalidate and validate methods for sudoers

This commit is contained in:
Todd C. Miller
2010-03-15 20:24:55 -04:00
parent 248bae4e56
commit ee223889c1
2 changed files with 18 additions and 3 deletions

View File

@@ -201,7 +201,7 @@ main(int argc, char *argv[], char *envp[])
exit(ok != TRUE);
case MODE_KILL:
case MODE_INVALIDATE:
if (policy_plugin.u.policy->validate == NULL) {
if (policy_plugin.u.policy->invalidate == NULL) {
warningx("policy plugin %s does not support the -k/-K flags",
policy_plugin.name);
exit(1);