summaryrefslogtreecommitdiff
path: root/src/tun_helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tun_helper.h')
-rw-r--r--src/tun_helper.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tun_helper.h b/src/tun_helper.h
index c403f28..b403891 100644
--- a/src/tun_helper.h
+++ b/src/tun_helper.h
@@ -55,7 +55,9 @@ void tun_conf(tun_device_t* dev, const char* dev_name, const char* dev_type, con
else if(!strncmp(dev_name, "tap", 3))
dev->type_ = TYPE_TAP;
}
-
+
+ dev->local_ = NULL;
+ dev->remote_netmask_ = NULL;
if(ifcfg_lp)
dev->local_ = strdup(ifcfg_lp);
if(ifcfg_rnmp)