diff --git a/source3/auth/auth_script.c b/source3/auth/auth_script.c index 70c906d942a..3d007b77303 100644 --- a/source3/auth/auth_script.c +++ b/source3/auth/auth_script.c @@ -132,10 +132,11 @@ static NTSTATUS auth_init_script(struct auth_context *auth_context, const char * if (param && *param) { /* we load the 'fallback' module - if script isn't here, call this module */ - if (!load_auth_module(auth_context, param, (auth_methods **)&(*auth_method)->private_data)) { + auth_methods *priv; + if (!load_auth_module(auth_context, param, &priv)) { return NT_STATUS_UNSUCCESSFUL; } - + (*auth_method)->private_data = (void *)priv; } return NT_STATUS_OK; } diff --git a/source3/auth/auth_winbind.c b/source3/auth/auth_winbind.c index 835e0b4b255..fa56757950d 100644 --- a/source3/auth/auth_winbind.c +++ b/source3/auth/auth_winbind.c @@ -158,10 +158,11 @@ static NTSTATUS auth_init_winbind(struct auth_context *auth_context, const char if (param && *param) { /* we load the 'fallback' module - if winbind isn't here, call this module */ - if (!load_auth_module(auth_context, param, (auth_methods **)&(*auth_method)->private_data)) { + auth_methods *priv; + if (!load_auth_module(auth_context, param, &priv)) { return NT_STATUS_UNSUCCESSFUL; } - + (*auth_method)->private_data = (void *)priv; } return NT_STATUS_OK; }