summaryrefslogtreecommitdiff
path: root/src/uanytun.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-12-28 02:07:13 +0000
committerChristian Pointner <equinox@anytun.org>2008-12-28 02:07:13 +0000
commit5a38cf910fdba0a9a46305fc1480950c208ce66b (patch)
tree398a1f17c55fc72fffecd8d4cbc0ee34a104ed58 /src/uanytun.c
parentadded udp socket (diff)
fixed memory error und udp_close
Diffstat (limited to 'src/uanytun.c')
-rw-r--r--src/uanytun.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/uanytun.c b/src/uanytun.c
index ca16446..27d1880 100644
--- a/src/uanytun.c
+++ b/src/uanytun.c
@@ -71,6 +71,7 @@ int main(int argc, char* argv[])
exit(-1);
}
+
log_printf(INFO, "entering main loop");
u_int8_t buf[1600];
int len = 0;
@@ -82,6 +83,7 @@ int main(int argc, char* argv[])
cnt++;
}
tun_close(&dev);
+ udp_close(&sock);
return 0;
}