X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fvde_device.c;h=401732135332557fafb80e7286852c500fa9d7d4;hb=8c8dfd6686a3d4cc11c20a09c8dfbc8321b07cdb;hp=f30c3e3232ef31c43526c51bfd4cd6b15a3d7c19;hpb=96ce3c9e052b27c2b5f85320dff5f0cc52defa9a;p=tinc diff --git a/src/vde_device.c b/src/vde_device.c index f30c3e32..40173213 100644 --- a/src/vde_device.c +++ b/src/vde_device.c @@ -35,15 +35,15 @@ static char *group = NULL; static const char *device_info = "VDE socket"; static bool setup_device(void) { - if(!get_config_string(lookup_config(config_tree, "Device"), &device)) { + if(!get_config_string(lookup_config(&config_tree, "Device"), &device)) { xasprintf(&device, RUNSTATEDIR "/vde.ctl"); } - get_config_string(lookup_config(config_tree, "Interface"), &iface); + get_config_string(lookup_config(&config_tree, "Interface"), &iface); - get_config_int(lookup_config(config_tree, "VDEPort"), &port); + get_config_int(lookup_config(&config_tree, "VDEPort"), &port); - get_config_string(lookup_config(config_tree, "VDEGroup"), &group); + get_config_string(lookup_config(&config_tree, "VDEGroup"), &group); struct vde_open_args args = { .port = port,