mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
libcli/auth: add let netlogon_creds_alloc() use _talloc_keep_secret()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
d091182156
commit
36b5a75123
@ -492,6 +492,7 @@ netlogon_creds_alloc(TALLOC_CTX *mem_ctx,
|
||||
struct netlogon_creds_CredentialState *creds = NULL;
|
||||
struct timeval tv = timeval_current();
|
||||
NTTIME now = timeval_to_nttime(&tv);
|
||||
const char *name = NULL;
|
||||
|
||||
creds = talloc_zero(mem_ctx, struct netlogon_creds_CredentialState);
|
||||
if (creds == NULL) {
|
||||
@ -523,6 +524,8 @@ netlogon_creds_alloc(TALLOC_CTX *mem_ctx,
|
||||
creds->client_sid = global_sid_NULL;
|
||||
}
|
||||
|
||||
name = talloc_get_name(creds);
|
||||
_talloc_keep_secret(creds, name);
|
||||
return creds;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user