diff options
author | Jeremy Allison <jra@samba.org> | 2006-09-02 01:34:37 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:39:45 -0500 |
commit | ef92f91cd7fa7c6dfa3c805882083c951cb3add6 (patch) | |
tree | bf542d015de3a88a846c405fea923dbc966c4a9d | |
parent | fc6bce6d9ccd5c56ef0bb7c936a724651ef05c4e (diff) | |
download | samba-ef92f91cd7fa7c6dfa3c805882083c951cb3add6.tar.gz samba-ef92f91cd7fa7c6dfa3c805882083c951cb3add6.tar.bz2 samba-ef92f91cd7fa7c6dfa3c805882083c951cb3add6.zip |
r17996: Don't talloc free the memory then reference it. Doh !
Jeremy.
(This used to be commit 188eb9794df265e8a55602d46b6bb4bd7daffa7f)
-rw-r--r-- | source3/libads/kerberos.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c index 80bc5a6661..4ddbf0abc5 100644 --- a/source3/libads/kerberos.c +++ b/source3/libads/kerberos.c @@ -559,14 +559,15 @@ BOOL create_local_private_krb5_conf_for_domain(const char *realm, const char *do TALLOC_FREE(dname); return False; } - /* Set the environment variable to this file. */ - setenv("KRB5_CONFIG", fname, 1); - TALLOC_FREE(dname); DEBUG(5,("create_local_private_krb5_conf_for_domain: wrote " "file %s with realm %s KDC = %s\n", fname, realm_upper, inet_ntoa(ip) )); + /* Set the environment variable to this file. */ + setenv("KRB5_CONFIG", fname, 1); + TALLOC_FREE(dname); + return True; } #endif |