mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-30 16:54:04 -05:00
eloop: Fix EVENT_TYPE_WRITE with poll()-based eloop
This needs to use POLLOUT instead of POLLIN to get the correct event. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
b682d6a73d
commit
4be921ac60
@ -278,7 +278,7 @@ static int eloop_sock_table_set_fds(struct eloop_sock_table *readers,
|
|||||||
pollfds_map[fd] = pfd;
|
pollfds_map[fd] = pfd;
|
||||||
nxt++;
|
nxt++;
|
||||||
}
|
}
|
||||||
pfd->events |= POLLIN;
|
pfd->events |= POLLOUT;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user