projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix "tinc start" on Windows when the path contains spaces.
[tinc]
/
src
/
vde_device.c
diff --git
a/src/vde_device.c
b/src/vde_device.c
index
1021f5d
..
55d66b4
100644
(file)
--- a/
src/vde_device.c
+++ b/
src/vde_device.c
@@
-82,15
+82,18
@@
static bool setup_device(void) {
}
static void close_device(void) {
}
static void close_device(void) {
- if(conn)
- plug.vde_close(conn);
+ if(conn) {
+ plug.vde_close(conn); conn = NULL;
+ }
if(plug.dl_handle)
libvdeplug_dynclose(plug);
if(plug.dl_handle)
libvdeplug_dynclose(plug);
- free(device);
+ free(device); device = NULL;
+
+ free(iface); iface = NULL;
-
free(iface)
;
+
device_info = NULL
;
}
static bool read_packet(vpn_packet_t *packet) {
}
static bool read_packet(vpn_packet_t *packet) {