Fix fd leak if /dev/urandom can be opened but not read.
This commit is contained in:
parent
72cc5a995f
commit
5457b10278
1 changed files with 1 additions and 0 deletions
|
@ -499,6 +499,7 @@ seed_with_urandom(void)
|
||||||
srand(seed);
|
srand(seed);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
close(fd);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue