chiark
/
gitweb
/
~ianmdlvl
/
secnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ipaddr_to_string: SECURITY: Do not allocate
[secnet.git]
/
tun.c
diff --git
a/tun.c
b/tun.c
index dcfd62392d825994665a787a88f3afe588230d3c..c511dbe23adb2ae510e70f8651fc269e8accbe3a 100644
(file)
--- a/
tun.c
+++ b/
tun.c
@@
-240,9
+240,7
@@
static bool_t tun_set_route(void *sst, struct netlink_client *routes)
fatal("tun_set_route: unsupported route command type");
break;
}
fatal("tun_set_route: unsupported route command type");
break;
}
- free(network); free(mask);
}
}
- free(secnetaddr);
if (st->route_type==TUN_CONFIG_IOCTL) {
close(fd);
}
if (st->route_type==TUN_CONFIG_IOCTL) {
close(fd);
}