aboutsummaryrefslogtreecommitdiffstats
path: root/libparc/parc/security
diff options
context:
space:
mode:
authorAngelo Mantellini <manangel@cisco.com>2019-03-08 20:37:28 +0100
committerAngelo Mantellini <manangel@cisco.com>2019-03-08 20:37:28 +0100
commit01dc9022fe0f2b8c879d7f430c2517ad86da1e4f (patch)
tree42b1d8dc6572e57feee946e7585690007a3333cf /libparc/parc/security
parente493821fa35ebffd3ca97328bcd2deca1ef245bf (diff)
Correct issue on windows. The file descriptor is closed by fclose.
Change-Id: If33a88e3713cb93378536a90a9bc4a4eb8c42b40 Signed-off-by: Angelo Mantellini <manangel@cisco.com>
Diffstat (limited to 'libparc/parc/security')
-rw-r--r--libparc/parc/security/parc_Pkcs12KeyStore.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libparc/parc/security/parc_Pkcs12KeyStore.c b/libparc/parc/security/parc_Pkcs12KeyStore.c
index 55e5e9b5..68ea40b9 100644
--- a/libparc/parc/security/parc_Pkcs12KeyStore.c
+++ b/libparc/parc/security/parc_Pkcs12KeyStore.c
@@ -267,7 +267,9 @@ parcPkcs12KeyStore_CreateFile(
} else {
parcTrapUnrecoverableState("Cannot fdopen(3) the file descriptor %d", fd);
}
+#ifndef _WIN32
close(fd);
+#endif
} else {
parcTrapUnrecoverableState("Cannot open(2) the file '%s': %s", filename, strerror(errno));
}