From: Jeremy Allison Date: Sat, 2 Sep 2006 01:34:37 +0000 (+0000) Subject: r17996: Don't talloc free the memory then reference it. Doh ! X-Git-Tag: samba-4.0.0alpha6~801^2~7752 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef92f91cd7fa7c6dfa3c805882083c951cb3add6;p=thirdparty%2Fsamba.git r17996: Don't talloc free the memory then reference it. Doh ! Jeremy. (This used to be commit 188eb9794df265e8a55602d46b6bb4bd7daffa7f) --- diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c index 80bc5a66617..4ddbf0abc5a 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