summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-08-06 09:36:07 -0400
committerJakub Hrozek <jhrozek@redhat.com>2012-08-06 18:12:56 +0200
commitb1a8ecc98c0f588f86b98d9c0c5751225ce9aaa9 (patch)
tree5b20a9024b73c30ffb37959fbc972d25f6fd4f74 /src
parentabd079e56ca59ce8d6a04fe132d8c7c60f7e3b63 (diff)
downloadsssd-b1a8ecc98c0f588f86b98d9c0c5751225ce9aaa9.tar.gz
sssd-b1a8ecc98c0f588f86b98d9c0c5751225ce9aaa9.tar.bz2
sssd-b1a8ecc98c0f588f86b98d9c0c5751225ce9aaa9.zip
IPA: Do not attempt to close the same file twice
https://fedorahosted.org/sssd/ticket/1456
Diffstat (limited to 'src')
-rw-r--r--src/providers/ipa/ipa_subdomains.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_subdomains.c b/src/providers/ipa/ipa_subdomains.c
index 3ea8a317..9adc3fa9 100644
--- a/src/providers/ipa/ipa_subdomains.c
+++ b/src/providers/ipa/ipa_subdomains.c
@@ -347,13 +347,13 @@ ipa_subdomains_write_mappings(struct sss_domain_info *domain,
}
ret = fclose(fstream);
+ fstream = NULL;
if (ret != 0) {
ret = errno;
DEBUG(SSSDBG_CRIT_FAILURE,
("fclose failed [%d][%s].\n", ret, strerror(ret)));
goto done;
}
- fstream = NULL;
ret = rename(tmp_file, mapping_file);
if (ret == -1) {