diff options
author | Michael Adam <obnox@samba.org> | 2009-01-16 00:17:51 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-01-16 01:02:22 +0100 |
commit | 0b87f210f17396d188cbd342bcfa94a33e031917 (patch) | |
tree | 59f9766975fbc9f2d9254c59446a2bd056565862 /source3/libads | |
parent | 37c77643f9c9ef683991d001991b30264e9e2a7d (diff) | |
download | samba-0b87f210f17396d188cbd342bcfa94a33e031917.tar.gz samba-0b87f210f17396d188cbd342bcfa94a33e031917.tar.bz2 samba-0b87f210f17396d188cbd342bcfa94a33e031917.zip |
s3:libads: use lock_path for creating paths to local krb5.conf files
instead of manually doing an asprintf with lp_lockdir()
Michael
squash
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/kerberos.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c index 7273c33025..b752fc2124 100644 --- a/source3/libads/kerberos.c +++ b/source3/libads/kerberos.c @@ -847,7 +847,7 @@ bool create_local_private_krb5_conf_for_domain(const char *realm, const char *sitename, struct sockaddr_storage *pss) { - char *dname = talloc_asprintf(NULL, "%s/smb_krb5", lp_lockdir()); + char *dname = lock_path("smb_krb5"); char *tmpname = NULL; char *fname = NULL; char *file_contents = NULL; @@ -868,7 +868,7 @@ bool create_local_private_krb5_conf_for_domain(const char *realm, goto done; } - tmpname = talloc_asprintf(dname, "%s/smb_tmp_krb5.XXXXXX", lp_lockdir()); + tmpname = lock_path("smb_tmp_krb5.XXXXXX"); if (!tmpname) { goto done; } @@ -1003,6 +1003,7 @@ bool create_local_private_krb5_conf_for_domain(const char *realm, #endif done: + TALLOC_FREE(tmpname); TALLOC_FREE(dname); return result; |