From 61176d4f4728e382054d77281118e555543bef0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Mon, 1 Oct 2018 15:31:14 +0000 Subject: [PATCH] Fix BSD MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrien Gallouët --- src/tun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tun.c b/src/tun.c index 65ea125..8130b5c 100644 --- a/src/tun.c +++ b/src/tun.c @@ -224,7 +224,7 @@ tun_write(int fd, const void *data, size_t size) #ifdef GT_BSD_TUN uint32_t family; - switch (ip_get_version(data)) { + switch (ip_get_version(data, (int)size)) { case 4: family = htonl(AF_INET); break;