diff --git a/src/devices/tcpmuxd.c b/src/devices/tcpmuxd.c index ad63bc834..7ead8bb3e 100644 --- a/src/devices/tcpmuxd.c +++ b/src/devices/tcpmuxd.c @@ -261,6 +261,7 @@ static void nn_tcpmuxd_routine (void *arg) } ctx->pfd [ctx->pfd_size - 1].fd = conn; ctx->pfd [ctx->pfd_size - 1].events = 0; + ctx->pfd [ctx->pfd_size - 1].revents = 0; /* Read the connection header. */ ssz = recv (conn, buf, 2, 0);