r18201: Make explicit what's going on here.
authorJeremy Allison <jra@samba.org>
Thu, 7 Sep 2006 04:17:23 +0000 (04:17 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:51:16 +0000 (11:51 -0500)
Jeremy.
(This used to be commit 38b8a2b5278d2538b9803c2b81f767036a16ad65)

source3/libads/kerberos.c

index d2a2c806a9badaf4be292e6dea89ae6c4dc1dd30..40c3019a3195fb5a5096fb4922bb31280a161764 100644 (file)
@@ -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",