Avoid unnecessary memory allocation in building of SIM realm
authorJouni Malinen <j@w1.fi>
Sun, 22 Jan 2012 19:29:35 +0000 (21:29 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 22 Jan 2012 19:54:24 +0000 (21:54 +0200)
commita3e0105692d4efdafcf50bf438e5aa140217bea1
treed24e07fe183caf0d96c64280a7abb90af106e50f
parent2d7d0ab307443e196d1517cccbc058229815419c
Avoid unnecessary memory allocation in building of SIM realm

The temporary IMSI buffer can be used for this without needing the
extra memory allocation. In addition, the implementation is easier
to understand when the extra identity prefix value for EAP-SIM/AKA
is not included while fetching MCC/MNC from the IMSI.

Signed-hostap: Jouni Malinen <j@w1.fi>
src/eap_peer/eap.c