mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
random: Improve error messages about writing to entropy file
This commit is contained in:
parent
aa820e02cc
commit
9339bd5cd2
@ -364,8 +364,8 @@ static void random_write_entropy(void)
|
|||||||
|
|
||||||
f = fopen(random_entropy_file, "wb");
|
f = fopen(random_entropy_file, "wb");
|
||||||
if (f == NULL) {
|
if (f == NULL) {
|
||||||
wpa_printf(MSG_ERROR, "random: Could not write %s",
|
wpa_printf(MSG_ERROR, "random: Could not open entropy file %s "
|
||||||
random_entropy_file);
|
"for writing", random_entropy_file);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -375,8 +375,8 @@ static void random_write_entropy(void)
|
|||||||
fail = 1;
|
fail = 1;
|
||||||
fclose(f);
|
fclose(f);
|
||||||
if (fail) {
|
if (fail) {
|
||||||
wpa_printf(MSG_ERROR, "random: Could not entropy data to %s",
|
wpa_printf(MSG_ERROR, "random: Could not write entropy data "
|
||||||
random_entropy_file);
|
"to %s", random_entropy_file);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user