diff options
author | Jeremy Allison <jra@samba.org> | 2006-09-07 04:17:23 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:51:16 -0500 |
commit | 253c01f29ee8b0287eb47a29683a54ec846d142e (patch) | |
tree | 6f7a6f771c1d57987dc4dca831ed2f9202d092a2 /source3/libads | |
parent | 6d4c7b13450f2c302a267f42c1b8bf1e8a30b639 (diff) | |
download | samba-253c01f29ee8b0287eb47a29683a54ec846d142e.tar.gz samba-253c01f29ee8b0287eb47a29683a54ec846d142e.tar.bz2 samba-253c01f29ee8b0287eb47a29683a54ec846d142e.zip |
r18201: Make explicit what's going on here.
Jeremy.
(This used to be commit 38b8a2b5278d2538b9803c2b81f767036a16ad65)
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/kerberos.c | 3 |
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", |