mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
r18665: Remove two type-punned warnings
(This used to be commit 157b2c0c26
)
This commit is contained in:
parent
fb79acba60
commit
72e9a5d9e6
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user