Correct issue on windows. The file descriptor is closed by fclose. 52/18152/1
authorAngelo Mantellini <[email protected]>
Fri, 8 Mar 2019 19:37:28 +0000 (20:37 +0100)
committerAngelo Mantellini <[email protected]>
Fri, 8 Mar 2019 19:37:28 +0000 (20:37 +0100)
Change-Id: If33a88e3713cb93378536a90a9bc4a4eb8c42b40
Signed-off-by: Angelo Mantellini <[email protected]>
libparc/parc/security/parc_Pkcs12KeyStore.c

index 55e5e9b..68ea40b 100644 (file)
@@ -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));
             }