mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 03:48:02 +00:00
ensure revents fields are initialized before calling poll()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6476 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -436,8 +436,10 @@ static void *netconsole(void *vconsole)
|
||||
for(;;) {
|
||||
fds[0].fd = con->fd;
|
||||
fds[0].events = POLLIN;
|
||||
fds[0].revents = 0;
|
||||
fds[1].fd = con->p[0];
|
||||
fds[1].events = POLLIN;
|
||||
fds[1].revents = 0;
|
||||
|
||||
res = poll(fds, 2, -1);
|
||||
if (res < 0) {
|
||||
|
||||
Reference in New Issue
Block a user