mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +03:00
s3:auth_generic: fix talloc_unlink() in auth_generic_set_creds()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
5af5bf2645
commit
e2170431f1
@ -51,7 +51,7 @@ NTSTATUS auth_generic_set_password(struct auth_generic_state *ans,
|
|||||||
NTSTATUS auth_generic_set_creds(struct auth_generic_state *ans,
|
NTSTATUS auth_generic_set_creds(struct auth_generic_state *ans,
|
||||||
struct cli_credentials *creds)
|
struct cli_credentials *creds)
|
||||||
{
|
{
|
||||||
talloc_unlink(ans->credentials, creds);
|
talloc_unlink(ans, ans->credentials);
|
||||||
ans->credentials = creds;
|
ans->credentials = creds;
|
||||||
return NT_STATUS_OK;
|
return NT_STATUS_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user