summaryrefslogtreecommitdiffstats
path: root/source3/libads
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-03-08 23:48:12 +0100
committerVolker Lendecke <vl@samba.org>2008-03-08 23:48:12 +0100
commit87805819f108f0d2a7376ca78952a6e6a36bc6db (patch)
treee72962b3e55ee74bd0b11c08f4c497b778d21150 /source3/libads
parent7192e40deedaa6d73d612491235e8c4ee4345adf (diff)
downloadsamba-87805819f108f0d2a7376ca78952a6e6a36bc6db.tar.gz
samba-87805819f108f0d2a7376ca78952a6e6a36bc6db.tar.xz
samba-87805819f108f0d2a7376ca78952a6e6a36bc6db.zip
Fix Coverity ID 551
Correctly return if we can't create the temporary krb5.conf Jeremy, please check! (This used to be commit c2401811aa3d02a9e27969687b9ea035407000c3)
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/kerberos.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c
index b37b9a500fb..ee25fb55517 100644
--- a/source3/libads/kerberos.c
+++ b/source3/libads/kerberos.c
@@ -894,6 +894,8 @@ bool create_local_private_krb5_conf_for_domain(const char *realm,
DEBUG(0,("create_local_private_krb5_conf_for_domain: smb_mkstemp failed,"
" for file %s. Errno %s\n",
tmpname, strerror(errno) ));
+ TALLOC_FREE(dname);
+ return false;
}
if (fchmod(fd, 0644)==-1) {