diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-10-19 10:05:48 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-10-19 10:05:48 +0200 |
commit | 7275952568bbf003299d895b71b246f75851db93 (patch) | |
tree | 7ec15c35176685b8a486ae86055b6de36423ca2f /source3/libnet | |
parent | b1a1fbcbfb8f7d9b09bd26407ca4185b2cb4a0e3 (diff) | |
download | samba-7275952568bbf003299d895b71b246f75851db93.tar.gz samba-7275952568bbf003299d895b71b246f75851db93.tar.bz2 samba-7275952568bbf003299d895b71b246f75851db93.zip |
Add TALLOC_CTX pointer to generate_random_str(), for consistency with
Samba 4.
Diffstat (limited to 'source3/libnet')
-rw-r--r-- | source3/libnet/libnet_join.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c index ab8af0be6b..6935e000dc 100644 --- a/source3/libnet/libnet_join.c +++ b/source3/libnet/libnet_join.c @@ -775,7 +775,7 @@ static NTSTATUS libnet_join_joindomain_rpc(TALLOC_CTX *mem_ctx, ZERO_STRUCT(user_pol); if (!r->in.machine_password) { - r->in.machine_password = talloc_strdup(mem_ctx, generate_random_str(DEFAULT_TRUST_ACCOUNT_PASSWORD_LENGTH)); + r->in.machine_password = generate_random_str(mem_ctx, DEFAULT_TRUST_ACCOUNT_PASSWORD_LENGTH); NT_STATUS_HAVE_NO_MEMORY(r->in.machine_password); } |