Call plugin_cleanup(), not cleanup()
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user