1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-04 16:58:42 +03:00

Fix Coverity ID 551

Correctly return if we can't create the temporary krb5.conf

Jeremy, please check!
(This used to be commit c2401811aa3d02a9e27969687b9ea035407000c3)
This commit is contained in:
Volker Lendecke 2008-03-08 23:48:12 +01:00
parent 7192e40dee
commit 87805819f1

View File

@ -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) {