1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-18 06:04:06 +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:
Stefan Metzmacher 2024-03-07 00:11:26 +01:00
parent 5af5bf2645
commit e2170431f1

View File

@ -51,7 +51,7 @@ NTSTATUS auth_generic_set_password(struct auth_generic_state *ans,
NTSTATUS auth_generic_set_creds(struct auth_generic_state *ans,
struct cli_credentials *creds)
{
talloc_unlink(ans->credentials, creds);
talloc_unlink(ans, ans->credentials);
ans->credentials = creds;
return NT_STATUS_OK;
}