fixed segmentation fault due to null pointer

This commit is contained in:
Andreas Steffen
2011-04-22 10:11:16 +02:00
parent 4b06f9f265
commit 406051ea4e
2 changed files with 2 additions and 2 deletions
@@ -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);