From ef92f91cd7fa7c6dfa3c805882083c951cb3add6 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 2 Sep 2006 01:34:37 +0000 Subject: r17996: Don't talloc free the memory then reference it. Doh ! Jeremy. (This used to be commit 188eb9794df265e8a55602d46b6bb4bd7daffa7f) --- source3/libads/kerberos.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source3/libads') 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 -- cgit