diff options
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; |