]> granicus.if.org Git - sudo/commitdiff
Zero out group_plugin on unload just to be safe.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 8 Nov 2010 22:48:05 +0000 (17:48 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 8 Nov 2010 22:48:05 +0000 (17:48 -0500)
plugins/sudoers/group_plugin.c

index da3adc68000741a8f9c89dc4f3e45c70e914c631..5058687402bccfa628e37e41daa6278fd8342869 100644 (file)
@@ -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