summaryrefslogtreecommitdiff
path: root/src/bsd/tun.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bsd/tun.c')
-rw-r--r--src/bsd/tun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bsd/tun.c b/src/bsd/tun.c
index bc10d5b..d52cf67 100644
--- a/src/bsd/tun.c
+++ b/src/bsd/tun.c
@@ -58,7 +58,7 @@
int tun_init(tun_device_t* dev, const char* dev_name, const char* dev_type, const char* ifcfg_addr, u_int16_t ifcfg_prefix)
{
if(!dev)
- return;
+ return -1;
tun_conf(dev, dev_name, dev_type, ifcfg_addr, ifcfg_prefix, 1400);
dev->actual_name_ = NULL;