do not use a route if outgoing interface is down
[strongswan.git] / src / charon / kernel / kernel_interface.c
index 2c515b0..fca1496 100644 (file)
@@ -256,7 +256,7 @@ static status_t get_address_by_ts(private_kernel_interface_t *this,
        }
        host->destroy(host);
        
-       addrs = this->public.create_address_enumerator(&this->public, TRUE, TRUE);
+       addrs = create_address_enumerator(this, TRUE, TRUE);
        while (addrs->enumerate(addrs, (void**)&host))
        {
                if (ts->includes(ts, host))