]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
eloop: Fix EVENT_TYPE_WRITE with poll()-based eloop
authorJouni Malinen <j@w1.fi>
Wed, 4 Jul 2012 18:36:38 +0000 (21:36 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 4 Jul 2012 18:36:38 +0000 (21:36 +0300)
This needs to use POLLOUT instead of POLLIN to get the correct event.

Signed-hostap: Jouni Malinen <j@w1.fi>

src/utils/eloop.c

index b50ea92fc745d9a5e478074e549e8ad1c11f3efb..bb32401157962c24c13c012de3a833bd2d80ba51 100644 (file)
@@ -278,7 +278,7 @@ static int eloop_sock_table_set_fds(struct eloop_sock_table *readers,
                                pollfds_map[fd] = pfd;
                                nxt++;
                        }
-                       pfd->events |= POLLIN;
+                       pfd->events |= POLLOUT;
                }
        }