Make it easy to check if an address is locally usable via changed get_interface(...
[strongswan.git] / src / libcharon / plugins / updown / updown_listener.c
index 2f9f2ef..8b2af05 100644 (file)
@@ -267,9 +267,8 @@ METHOD(listener_t, child_updown, bool,
 
                if (up)
                {
-                       iface = hydra->kernel_interface->get_interface(
-                                                                                               hydra->kernel_interface, me);
-                       if (iface)
+                       if (hydra->kernel_interface->get_interface(hydra->kernel_interface,
+                                                                                                          me, &iface))
                        {
                                cache_iface(this, child_sa->get_reqid(child_sa), iface);
                        }