projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't enable the device if the reachable count is zero.
[tinc]
/
src
/
linux
/
device.c
diff --git
a/src/linux/device.c
b/src/linux/device.c
index
6ed1622
..
cfd99ff
100644
(file)
--- a/
src/linux/device.c
+++ b/
src/linux/device.c
@@
-110,10
+110,12
@@
static bool setup_device(void) {
static void close_device(void) {
close(device_fd);
static void close_device(void) {
close(device_fd);
+ device_fd = -1;
- free(type);
- free(device);
- free(iface);
+ free(type); type = NULL;
+ free(device); device = NULL;
+ free(iface); iface = NULL;
+ device_info = NULL;
}
static bool read_packet(vpn_packet_t *packet) {
}
static bool read_packet(vpn_packet_t *packet) {