Fix segfault when failing to read random numbers.
authorGuus Sliepen <guus@tinc-vpn.org>
Mon, 21 Sep 2020 21:22:18 +0000 (23:22 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Mon, 21 Sep 2020 21:22:18 +0000 (23:22 +0200)
Because the result of read() was incorrectly stored in an unsigned
variable, an error reading from the random number generator device would
result in an infinite loop that would start writing out of bounds and
eventually corrupt the stack.


No differences found