diff options
author | Pavel Tvrdik <pawel.tvrdik@gmail.com> | 2016-09-08 13:45:36 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2016-09-15 16:18:32 +0200 |
commit | 0f5054f6850c7419933a6337a34263f565663ee3 (patch) | |
tree | 27df9c4296a0d465894cd92a8e4301d2bf44a53e /sysdep/unix/random.c | |
parent | a290da25a16b7c79d4a7a87f522b4068bca04979 (diff) |
BFD: Fix invalid read from pollfd array
It is possible that sockets_add() are called between sockets_prepare()
and sockets_fire() during poll loop in birdloop_main(), so we need to
use loop->poll_fd.used instead of loop->sock_num to find the last field.
Diffstat (limited to 'sysdep/unix/random.c')
0 files changed, 0 insertions, 0 deletions