summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>2010-11-23 15:55:37 -0800
committerInaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>2010-11-23 15:55:37 -0800
commitfc06cfd00b80e54fb178ffae51050675f42501b9 (patch)
tree152e5f498d77327d413f2b7883dafa4845112e1d
parentc23d28bd5e8adf7186bc393a50ec784fc3b2528c (diff)
supplicant: fix invocation of eap_peer_sm_init()
Fourth argument was being pass with wrong typing (and luckily it is not really being used, so it wasn't pulling garbage). Fixed by creating a null 'struct eap_config' that is passed to eap_peer_sm_init(). Signed-off-by: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
-rw-r--r--InfraStack/OSAgnostic/WiMax/Agents/Supplicant/Source/SupplicantAgent.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/InfraStack/OSAgnostic/WiMax/Agents/Supplicant/Source/SupplicantAgent.c b/InfraStack/OSAgnostic/WiMax/Agents/Supplicant/Source/SupplicantAgent.c
index 3948615..742c57b 100644
--- a/InfraStack/OSAgnostic/WiMax/Agents/Supplicant/Source/SupplicantAgent.c
+++ b/InfraStack/OSAgnostic/WiMax/Agents/Supplicant/Source/SupplicantAgent.c
@@ -466,6 +466,12 @@ wmx_Status_t InitSupplicantLibrary(VOID)
char answer[MAX_ANSWER_SIZE];
void *ft;
#endif
+ struct eap_config eap_config_null = {
+ .opensc_engine_path = NULL,
+ .pkcs11_engine_path = NULL,
+ .pkcs11_module_path = NULL,
+ .wps = NULL,
+ };
TRACE(TR_MOD_SUPPLICANT_AGENT, TR_SEV_INFO,"Supplicant: InitSupplicantLibrary (IN)");
// init DS status variable
@@ -496,7 +502,7 @@ wmx_Status_t InitSupplicantLibrary(VOID)
eap_cb.notify_pending = peer_notify_pending;
eap_peer_register_methods();
- eap_ctx.eap = eap_peer_sm_init(&eap_ctx, &eap_cb, &eap_ctx, &eap_ctx.eap_config);
+ eap_ctx.eap = eap_peer_sm_init(&eap_ctx, &eap_cb, &eap_ctx, &eap_config_null);
if (eap_ctx.eap == NULL)
return WMX_ST_FAIL;