libhydra: Move all kernel plugins to libcharon
[strongswan.git] / src / libhydra / kernel / kernel_net.c
index 0841ed8..07d8b29 100644 (file)
@@ -25,13 +25,14 @@ bool kernel_net_register(plugin_t *plugin, plugin_feature_t *feature,
 {
        if (reg)
        {
-               hydra->kernel_interface->add_net_interface(hydra->kernel_interface,
+               return hydra->kernel_interface->add_net_interface(
+                                                                                       hydra->kernel_interface,
                                                                                        (kernel_net_constructor_t)data);
        }
        else
        {
-               hydra->kernel_interface->remove_net_interface(hydra->kernel_interface,
+               return hydra->kernel_interface->remove_net_interface(
+                                                                                       hydra->kernel_interface,
                                                                                        (kernel_net_constructor_t)data);
        }
-       return TRUE;
 }