Fix fd leak if /dev/urandom can be opened but not read.

This commit is contained in:
Jilles Tjoelker 2014-03-09 14:54:45 +01:00
parent 72cc5a995f
commit 5457b10278

View file

@ -499,6 +499,7 @@ seed_with_urandom(void)
srand(seed);
return 1;
}
close(fd);
}
return 0;
}