static bool initialised_static_modules = False;
struct auth_init_function_entry *entry;
- char *module_name = smb_xstrdup(module);
+ char module_name[strlen(module) + 1];
char *module_params = NULL;
char *p;
bool good = False;
DEBUG(5,("load_auth_module: Attempting to find an auth method to match %s\n",
module));
+ memcpy(module_name, module, sizeof(module_name));
+
p = strchr(module_name, ':');
if (p) {
*p = 0;
DEBUG(0,("load_auth_module: can't find auth method %s!\n", module_name));
}
- SAFE_FREE(module_name);
return good;
}