Commit 87b89b79 authored by Richard Levitte's avatar Richard Levitte
Browse files

Make sure an error condition is returned if, for some reason, the file

couldn't be opened.
parent f3f3cc0c
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -163,7 +163,11 @@ int RAND_write_file(const char *file)
		out = fopen(file,"wb");
#endif
		}
	if (out == NULL) goto err;
	if (out == NULL)
		{
		err=1;
		goto err;
		}
#ifndef NO_CHMOD
	chmod(file,0600);
#endif