diff --git a/plugins/sudoers/group_plugin.c b/plugins/sudoers/group_plugin.c index da3adc680..505868740 100644 --- a/plugins/sudoers/group_plugin.c +++ b/plugins/sudoers/group_plugin.c @@ -159,6 +159,7 @@ done: if (group_handle != NULL) { dlclose(group_handle); group_handle = NULL; + group_plugin = NULL; } } @@ -171,6 +172,7 @@ group_plugin_unload(void) (group_plugin->cleanup)(); dlclose(group_handle); group_handle = NULL; + group_plugin = NULL; } int