summaryrefslogtreecommitdiff
path: root/src/tun_helper.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-12-28 17:05:32 +0000
committerChristian Pointner <equinox@anytun.org>2008-12-28 17:05:32 +0000
commitb59af50aece804a8c22f7d71e0555f5fe574ac12 (patch)
tree093755c18c13fa17bb0c6fa28da4ced5f1ca1a4a /src/tun_helper.h
parentsmall cleanup (diff)
int main() is pretty finished now
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)