summaryrefslogtreecommitdiff
path: root/src/vpn
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-05-26 15:04:57 +0000
committerChristian Grothoff <christian@grothoff.org>2015-05-26 15:04:57 +0000
commit618e34685314ca8a8e9830259c0a17bfe1315cfa (patch)
tree052fcc545adafbb8f0d5fc698a0b14f44bb25617 /src/vpn
parent5b1a20db208f089a720c814b5551a56a8f7bdf89 (diff)
-exit helper when either direction breaks
Diffstat (limited to 'src/vpn')
-rw-r--r--src/vpn/gnunet-helper-vpn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vpn/gnunet-helper-vpn.c b/src/vpn/gnunet-helper-vpn.c
index 62696a545..5231c1657 100644
--- a/src/vpn/gnunet-helper-vpn.c
+++ b/src/vpn/gnunet-helper-vpn.c
@@ -360,7 +360,7 @@ run (int fd_tun)
/* write refers to reading from stdin, writing to fd_tun */
int write_open = 1;
- while ((1 == read_open) || (1 == write_open))
+ while ((1 == read_open) && (1 == write_open))
{
FD_ZERO (&fds_w);
FD_ZERO (&fds_r);