summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libads/kerberos.c7
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