Call plugin_cleanup(), not cleanup()

This commit is contained in:
Todd C. Miller
2010-11-12 13:02:15 -05:00
parent 8597c39194
commit 5536ea49f6
2 changed files with 2 additions and 2 deletions

View File

@@ -382,7 +382,7 @@ log_error(int flags, const char *fmt, ...)
restore_perms(); restore_perms();
if (!ISSET(flags, NO_EXIT)) { if (!ISSET(flags, NO_EXIT)) {
cleanup(0); plugin_cleanup(0);
siglongjmp(error_jmp, 1); siglongjmp(error_jmp, 1);
} }
} }

View File

@@ -660,7 +660,7 @@ sudoers_policy_invalidate(int remove)
user_cmnd = "kill"; user_cmnd = "kill";
if (sigsetjmp(error_jmp, 1) == 0) { if (sigsetjmp(error_jmp, 1) == 0) {
remove_timestamp(remove); remove_timestamp(remove);
cleanup(0); plugin_cleanup(0);
} }
} }