Fix initialization of NM plugin
authorMartin Willi <martin@revosec.ch>
Tue, 31 May 2011 16:12:56 +0000 (18:12 +0200)
committerMartin Willi <martin@revosec.ch>
Tue, 31 May 2011 16:12:56 +0000 (18:12 +0200)
src/libcharon/plugins/nm/nm_plugin.c

index fb8c16f..84b7c81 100644 (file)
@@ -118,8 +118,8 @@ plugin_t *nm_plugin_create()
                },
                .creds = nm_creds_create(),
                .handler = nm_handler_create(),
                },
                .creds = nm_creds_create(),
                .handler = nm_handler_create(),
-               .plugin = nm_strongswan_plugin_new(this->creds, this->handler),
        );
        );
+       this->plugin = nm_strongswan_plugin_new(this->creds, this->handler);
 
        hydra->attributes->add_handler(hydra->attributes, &this->handler->handler);
        lib->credmgr->add_set(lib->credmgr, &this->creds->set);
 
        hydra->attributes->add_handler(hydra->attributes, &this->handler->handler);
        lib->credmgr->add_set(lib->credmgr, &this->creds->set);