Allow the Android plugin to load even if the control socket is not available.
[strongswan.git] / src / libcharon / plugins / android / android_plugin.c
index 54a7017..d5101f4 100644 (file)
@@ -101,11 +101,6 @@ plugin_t *android_plugin_create()
        hydra->attributes->add_handler(hydra->attributes, &this->handler->handler);
 
        this->service = android_service_create(this->creds);
        hydra->attributes->add_handler(hydra->attributes, &this->handler->handler);
 
        this->service = android_service_create(this->creds);
-       if (!this->service)
-       {
-               destroy(this);
-               return NULL;
-       }
 
        return &this->public.plugin;
 }
 
        return &this->public.plugin;
 }