Skip to content
Snippets Groups Projects
Commit 68b33465 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

ITS#6030

parent f895a194
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@ OpenLDAP 2.4.16 Release (2009/03/20)
Fixed slapd backglue with empty DBs (ITS#5986)
Fixed slapd ctxcsn race condition (ITS#6001)
Fixed slapd debug message (ITS#6027)
Fixed slapd redundant module loading (ITS#6030)
Fixed slapd syncrepl newCookie sync messages (ITS#5972)
Fixed slapd syncrepl hang during shutdown (ITS#6011)
Fixed slapd syncrepl too many MMR messages (ITS#6020)
......
......@@ -119,7 +119,7 @@ int module_unload( const char *file_name )
int module_load(const char* file_name, int argc, char *argv[])
{
module_loaded_t *module = NULL;
module_loaded_t *module;
const char *error;
int rc;
MODULE_INIT_FN initialize;
......@@ -129,6 +129,13 @@ int module_load(const char* file_name, int argc, char *argv[])
#define file file_name
#endif
module = module_handle( file_name );
if ( module ) {
Debug( LDAP_DEBUG_ANY, "module_load: (%s) already loaded\n",
file_name, 0, 0 );
return -1;
}
module = (module_loaded_t *)ch_calloc(1, sizeof(module_loaded_t) +
strlen(file_name));
if (module == NULL) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment