From 452d8765b28f1a600cad82121b55dac75ffcd5a4 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 8 Nov 2010 17:48:05 -0500 Subject: [PATCH] Zero out group_plugin on unload just to be safe. --- plugins/sudoers/group_plugin.c | 2 ++ 1 file changed, 2 insertions(+) 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