• Glauber Costa's avatar
    fix null pointer access with no file pointer · 96b5dc0b
    Glauber Costa authored
    I happen to be working on a system that lacks urandom. While the code does try
    to handle this case and artificially create some bytes if the file pointer is
    empty, it does try to close it unconditionally, leading to a segfault.
    96b5dc0b
util.c 17.4 KB