X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fuml_device.c;h=970e462a8b34fcf60248aa3751fa63a48e084d5a;hb=1022812ed4b5c70162f2f0a9d9a96c716c936408;hp=a8bedc096a584a473104f4b3bedd0f59a6bd6532;hpb=2c6b2d70e6640f39563ad7bb0aa0ba87f883848c;p=tinc diff --git a/src/uml_device.c b/src/uml_device.c index a8bedc09..970e462a 100644 --- a/src/uml_device.c +++ b/src/uml_device.c @@ -63,11 +63,11 @@ static bool setup_device(void) { } name; struct timeval tv; - if(!get_config_string(lookup_config(config_tree, "Device"), &device)) { + if(!get_config_string(lookup_config(&config_tree, "Device"), &device)) { xasprintf(&device, RUNSTATEDIR "/%s.umlsocket", identname); } - get_config_string(lookup_config(config_tree, "Interface"), &iface); + get_config_string(lookup_config(&config_tree, "Interface"), &iface); if((write_fd = socket(PF_UNIX, SOCK_DGRAM, 0)) < 0) { logger(DEBUG_ALWAYS, LOG_ERR, "Could not open write %s: %s", device_info, strerror(errno));