diff options
author | Dimitri Staessens <[email protected]> | 2020-03-14 17:52:06 +0100 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2020-03-15 14:30:58 +0100 |
commit | 51d8f69fb152ae5a47151c2f132fd4263ec3d144 (patch) | |
tree | 67ef7b137bc00fdbb93774aa8ccbbbb39975ace0 /src/tools/ovpn/ovpn.c | |
parent | b977090a7692acada4b81677e88c5a5e60a153c3 (diff) | |
download | ouroboros-0.17.0.tar.gz ouroboros-0.17.0.zip |
lib: Return number of written bytes on flow_write0.17.0
This is more in line with the write() system call and prepares for
partial writes. Partial writes are disabled by default (and not yet
implemented).
Signed-off-by: Dimitri Staessens <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/tools/ovpn/ovpn.c')
-rw-r--r-- | src/tools/ovpn/ovpn.c | 2 |
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; } } |