summaryrefslogtreecommitdiff
path: root/source3/libads/util.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-19 10:05:48 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-19 10:05:48 +0200
commit7275952568bbf003299d895b71b246f75851db93 (patch)
tree7ec15c35176685b8a486ae86055b6de36423ca2f /source3/libads/util.c
parentb1a1fbcbfb8f7d9b09bd26407ca4185b2cb4a0e3 (diff)
downloadsamba-7275952568bbf003299d895b71b246f75851db93.tar.gz
Add TALLOC_CTX pointer to generate_random_str(), for consistency with
Samba 4.
Diffstat (limited to 'source3/libads/util.c')
-rw-r--r--source3/libads/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libads/util.c b/source3/libads/util.c
index d23c36f3269..9866a15285f 100644
--- a/source3/libads/util.c
+++ b/source3/libads/util.c
@@ -33,7 +33,7 @@ ADS_STATUS ads_change_trust_account_password(ADS_STRUCT *ads, char *host_princip
return ADS_ERROR_SYSTEM(ENOENT);
}
- new_password = generate_random_str(DEFAULT_TRUST_ACCOUNT_PASSWORD_LENGTH);
+ new_password = generate_random_str(talloc_tos(), DEFAULT_TRUST_ACCOUNT_PASSWORD_LENGTH);
ret = kerberos_set_password(ads->auth.kdc_server, host_principal, password, host_principal, new_password, ads->auth.time_offset);