]> tinc-vpn.org Git - tinc/blobdiff - src/upnp.c
Replace pointers to global splay trees with structs.
[tinc] / src / upnp.c
index 553630e8e2fd44cba8e2d30e26874cd0f3997adb..93c207fa34db0b00f7dd18ed73420e53ae800e93 100644 (file)
@@ -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);