aboutsummaryrefslogtreecommitdiff
path: root/tun.c
diff options
context:
space:
mode:
Diffstat (limited to 'tun.c')
-rw-r--r--tun.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tun.c b/tun.c
index bc3466b..c1494d9 100644
--- a/tun.c
+++ b/tun.c
@@ -2033,12 +2033,7 @@ tun_finalize (
}
if (buf)
- {
- if (ret < 0)
- buf->len = 0;
- else
- buf->len = ret;
- }
+ buf->len = ret;
return ret;
}