summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/libads/kerberos.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c
index d2a2c806a9..40c3019a31 100644
--- a/source3/libads/kerberos.c
+++ b/source3/libads/kerberos.c
@@ -520,7 +520,7 @@ BOOL create_local_private_krb5_conf_for_domain(const char *realm, const char *do
char *tmpname = NULL;
char *fname = NULL;
char *file_contents = NULL;
- char *kdc_ip_string;
+ char *kdc_ip_string = NULL;
size_t flen = 0;
ssize_t ret;
int fd;
@@ -627,6 +627,7 @@ BOOL create_local_private_krb5_conf_for_domain(const char *realm, const char *do
return True; /* Not a fatal error. */
}
+ /* Yes, this is a race conditon... too bad. */
if (unlink("/etc/krb5.conf") == -1) {
DEBUG(0,("create_local_private_krb5_conf_for_domain: unlink "
"of /etc/krb5.conf failed. Errno %s\n",