From 47d27da58d0dc608e8b05baa8dc91f43e10a42de Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 12 Jan 2021 10:40:33 +0000 Subject: The first one in a long series of obvious fixes --- src/dnsfunnel/dnsfunneld.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/dnsfunnel/dnsfunneld.c b/src/dnsfunnel/dnsfunneld.c index 12e9866..d65cb7c 100644 --- a/src/dnsfunnel/dnsfunneld.c +++ b/src/dnsfunnel/dnsfunneld.c @@ -159,7 +159,7 @@ int main (int argc, char const *const *argv) PROG = "dnsfunneld" ; { - unsigned int bufsize = 131072 ; + unsigned int bufsize = 0 ; int flagU = 0 ; uid_t uid = -1 ; gid_t gid = -1 ; @@ -366,7 +366,7 @@ int main (int argc, char const *const *argv) i = k ; } - if (x[0].revents & IOPAUSE_READ) + if (x[1].revents & IOPAUSE_READ) { uint32_t n = DNSFUNNELD_INPUT_MAX ; while (n--) -- cgit v1.3.1