Fix memory allocation failure handling in EAP-TTLS/MSCHAPv2 server
authorJouni Malinen <j@w1.fi>
Sun, 19 Aug 2012 14:23:00 +0000 (17:23 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 19 Aug 2012 14:23:00 +0000 (17:23 +0300)
commita2f94dbe626e695fdebdd8c29896c5b7a906da11
tree073f97b12a210bbeba56ac1c2e300cb128962464
parent44ec48ebfd19c1828c26880d7f32f6e658477e30
Fix memory allocation failure handling in EAP-TTLS/MSCHAPv2 server

If the os_malloc() call for the User-Name value fails in EAP-TTLS
server, the inner MSCHAPv2 processing could have tried to dereference a
NULL pointer. Avoid this by handling this cleanly as an internal error
and reject the authentication attempt.

Signed-hostap: Jouni Malinen <j@w1.fi>
intended-for: hostap-1
src/eap_server/eap_server_ttls.c