X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;ds=sidebyside;f=src%2Fraw_socket_device.c;h=8463502d45f0286520c235e2c5ca871c31882422;hb=3a149f7521dfff67e6a790c1a830afc649ae083e;hp=4dd18e2b2933bf87eb7935b83c3b0f5e096dc24a;hpb=bf81fce8ff7a244ecdfbe2d5535bdf4df07b3f35;p=tinc diff --git a/src/raw_socket_device.c b/src/raw_socket_device.c index 4dd18e2b..8463502d 100644 --- a/src/raw_socket_device.c +++ b/src/raw_socket_device.c @@ -37,11 +37,11 @@ static bool setup_device(void) { struct ifreq ifr; struct sockaddr_ll sa; - if(!get_config_string(lookup_config(config_tree, "Interface"), &iface)) { + if(!get_config_string(lookup_config(&config_tree, "Interface"), &iface)) { iface = xstrdup("eth0"); } - if(!get_config_string(lookup_config(config_tree, "Device"), &device)) { + if(!get_config_string(lookup_config(&config_tree, "Device"), &device)) { device = xstrdup(iface); }