From: Richard Levitte Date: Thu, 25 Mar 2004 20:01:01 +0000 (+0000) Subject: Wrap code starting with a definition. X-Git-Tag: OpenSSL_0_9_7e~130^2~16 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fd9fa844e21b08b6038e7175f05fbd9be815d3df;p=oweals%2Fopenssl.git Wrap code starting with a definition. PR: 854 --- diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c index fd90352848..dda020fb10 100644 --- a/crypto/rand/randfile.c +++ b/crypto/rand/randfile.c @@ -166,6 +166,7 @@ int RAND_write_file(const char *file) } #if defined(O_CREAT) && !defined(OPENSSL_SYS_WIN32) + { /* For some reason Win32 can't write to files created this way */ /* chmod(..., 0600) is too late to protect the file, @@ -173,6 +174,7 @@ int RAND_write_file(const char *file) int fd = open(file, O_CREAT, 0600); if (fd != -1) out = fdopen(fd, "wb"); + } #endif if (out == NULL) out = fopen(file,"wb");