projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tincctl: Use replace_name to properly replace and validate input hostnames
[tinc]
/
src
/
solaris
/
device.c
diff --git
a/src/solaris/device.c
b/src/solaris/device.c
index
c11f60f
..
a4c0d27
100644
(file)
--- a/
src/solaris/device.c
+++ b/
src/solaris/device.c
@@
-287,11
+287,11
@@
static void close_device(void) {
}
}
- close(ip_fd);
- close(device_fd);
+ close(ip_fd);
ip_fd = -1;
+ close(device_fd);
device_fd = -1;
- free(device);
- free(iface);
+ free(device);
device = NULL;
+ free(iface);
iface = NULL;
}
static bool read_packet(vpn_packet_t *packet) {