summaryrefslogtreecommitdiff
path: root/src/tools/ovpn/ovpn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/ovpn/ovpn.c')
-rw-r--r--src/tools/ovpn/ovpn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/ovpn/ovpn.c b/src/tools/ovpn/ovpn.c
index a3dd2ec6..02501d52 100644
--- a/src/tools/ovpn/ovpn.c
+++ b/src/tools/ovpn/ovpn.c
@@ -163,7 +163,7 @@ void * t_reader(void * o)
if (len <= 0)
continue;
- if (flow_write(o_fd, buf, len))
+ if (flow_write(o_fd, buf, len) < 0)
continue;
}
}