X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fupnp.c;h=93c207fa34db0b00f7dd18ed73420e53ae800e93;hb=04d8a8e34e1fe7f33f1946863b36a24ee358175f;hp=553630e8e2fd44cba8e2d30e26874cd0f3997adb;hpb=d6b45d005530496e48325a6174ecdd889a17bfc1;p=tinc diff --git a/src/upnp.c b/src/upnp.c index 553630e8..93c207fa 100644 --- a/src/upnp.c +++ b/src/upnp.c @@ -177,8 +177,8 @@ void upnp_init(bool tcp, bool udp) { upnp_tcp = tcp; upnp_udp = udp; - get_config_int(lookup_config(config_tree, "UPnPDiscoverWait"), &upnp_discover_wait); - get_config_int(lookup_config(config_tree, "UPnPRefreshPeriod"), &upnp_refresh_period); + get_config_int(lookup_config(&config_tree, "UPnPDiscoverWait"), &upnp_discover_wait); + get_config_int(lookup_config(&config_tree, "UPnPRefreshPeriod"), &upnp_refresh_period); #ifdef HAVE_MINGW HANDLE handle = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)upnp_thread, NULL, 0, NULL);