about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-01-12 10:40:33 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-01-12 10:40:33 +0000
commit47d27da58d0dc608e8b05baa8dc91f43e10a42de (patch)
tree0355e4222a5d7f7a07b6ec9596a12c735aca00b3 /src
parentfe49776280489a3bb9405f2d7651d1b16e4fe2e6 (diff)
downloaddnsfunnel-47d27da58d0dc608e8b05baa8dc91f43e10a42de.tar.gz
dnsfunnel-47d27da58d0dc608e8b05baa8dc91f43e10a42de.tar.xz
dnsfunnel-47d27da58d0dc608e8b05baa8dc91f43e10a42de.zip
The first one in a long series of obvious fixes
Diffstat (limited to 'src')
-rw-r--r--src/dnsfunnel/dnsfunneld.c4
1 files changed, 2 insertions, 2 deletions
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--)