Skip to content

Commit

Permalink
Fix how the read mode is specified to access
Browse files Browse the repository at this point in the history
The mode passed to access is an int and not a string, like in fopen.
  • Loading branch information
giacomini committed Jun 13, 2024
1 parent 30d6817 commit a3eaa5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sslutils/sslutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ ERR_load_prxyerr_strings(

randfile = RAND_file_name(buffer,200);

if (randfile && access(randfile, "r") == 0)
if (randfile && access(randfile, R_OK) == 0)
{
RAND_load_file(randfile,1024L*1024L);
}
Expand Down

0 comments on commit a3eaa5c

Please sign in to comment.