From: Howard Chu Date: Mon, 23 Mar 2009 16:06:00 +0000 (+0000) Subject: ITS#6030 reject redundant moduleload attempts X-Git-Tag: ACLCHECK_0~658 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bddc9b337c106b42e018e2b72f66c7f34d21bed8;p=openldap ITS#6030 reject redundant moduleload attempts --- diff --git a/servers/slapd/module.c b/servers/slapd/module.c index ae796d6c69..a09da6a8b6 100644 --- a/servers/slapd/module.c +++ b/servers/slapd/module.c @@ -129,10 +129,12 @@ int module_load(const char* file_name, int argc, char *argv[]) #define file file_name #endif - /* silently ignore attempts to load a module that's already present */ module = module_handle( file_name ); - if ( module ) - return 0; + 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));