Fix memory leak on EAPOL Authenticator error path
authorMasashi Honma <honma@ictec.co.jp>
Tue, 23 Nov 2010 23:42:50 +0000 (01:42 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 23 Nov 2010 23:42:50 +0000 (01:42 +0200)
commitdbb6ed7e752da8e5d563705afe6a1848d23f4052
treea6ad4ea2fdd93d2ac723a766ccff62afb31e0255
parentbbb921daaacccfac0e5e7085143b83fe5bf49294
Fix memory leak on EAPOL Authenticator error path

wlan0: RADIUS No authentication server configured
MEMLEAK[0x999feb8]: len 1040
WPA_TRACE: memleak - START
[3]: ./hostapd(radius_msg_new+0x33) [0x8074f43]
     radius_msg_new() ../src/radius/radius.c:117
[4]: ./hostapd() [0x806095e]
     ieee802_1x_encapsulate_radius() ../src/ap/ieee802_1x.c:439
     ieee802_1x_aaa_send() ../src/ap/ieee802_1x.c:1496

For example, this error occured when I used WPS hostapd without
"eap_server=1" definition in configuration file.
src/ap/ieee802_1x.c