socket: Fixed uninitialized fd->revents member.

Signed-off-by: Vic Lee <llyzs@163.com>
This commit is contained in:
Vic Lee
2010-10-22 13:08:13 +08:00
committed by Andreas Schneider
parent 59f0293576
commit a9f3a2f103

View File

@@ -492,6 +492,7 @@ int ssh_socket_poll(struct socket *s, int *writeable, int *except) {
fd->fd = s->fd;
fd->events = 0;
fd->revents = 0;
if (!s->data_to_read) {
fd->events |= POLLIN;