fixed segmentation fault due to null pointer
[strongswan.git] / src / libcharon / plugins / eap_sim_file / eap_sim_file_plugin.c
index 369c2eb..0ab5a18 100644 (file)
@@ -83,9 +83,9 @@ plugin_t *eap_sim_file_plugin_create()
                        },
                },
                .triplets = eap_sim_file_triplets_create(TRIPLET_FILE),
-               .provider = eap_sim_file_provider_create(this->triplets),
        );
 
+       this->provider = eap_sim_file_provider_create(this->triplets);
        if (!this->provider)
        {
                this->triplets->destroy(this->triplets);