Use new identity constructor in EAP-SIM

This commit is contained in:
Martin Willi
2009-11-12 10:34:01 +01:00
parent 324528700d
commit 947b03fd09
3 changed files with 23 additions and 42 deletions
+1 -4
View File
@@ -294,11 +294,8 @@ static status_t process_start(private_eap_sim_server_t *this,
if (identity.len)
{
identification_t *permanent;
char buf[identity.len + 1];
snprintf(buf, sizeof(buf), "%.*s", identity.len, identity.ptr);
id = identification_create_from_string(buf);
id = identification_create_from_data(identity);
if (this->use_reauth && !nonce.len)
{
char mk[HASH_SIZE_SHA1];