summaryrefslogtreecommitdiff
path: root/trust
diff options
context:
space:
mode:
authorPankaj <pankaj.s01@samsung.com>2015-06-01 22:04:22 +0200
committerStef Walter <stefw@redhat.com>2015-06-01 22:04:22 +0200
commit8768b4611d3268d6fca7fc214ce0a5c7ec7fc332 (patch)
treeef23847e8e03c8e482756f8bf228cbef91db938e /trust
parent6712b49861e3e59534c5e4b6d75146a01b939aff (diff)
trust: Fix double close()
Diffstat (limited to 'trust')
-rw-r--r--trust/save.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/trust/save.c b/trust/save.c
index 6533bd1..b7ab21e 100644
--- a/trust/save.c
+++ b/trust/save.c
@@ -233,7 +233,6 @@ p11_save_finish_file (p11_save_file *file,
/* Set the mode of the file, readable by everyone, but not writable */
} else if (chmod (file->temp, S_IRUSR | S_IRGRP | S_IROTH) < 0) {
p11_message_err (errno, "couldn't set file permissions: %s", file->temp);
- close (file->fd);
ret = false;
/* Atomically rename the tempfile over the filename */