]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix memory leak on parsing multiple network block eap entries
authorJouni Malinen <j@w1.fi>
Sun, 4 Mar 2012 14:13:00 +0000 (16:13 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 4 Mar 2012 14:13:00 +0000 (16:13 +0200)
Signed-hostap: Jouni Malinen <j@w1.fi>
intended-for: hostap-1

wpa_supplicant/config.c

index 0350b8e0a5fae1a1f47fcffd03d516ff9fea4a5e..a90e9d365dc7d282f8027129b9d2ecccdc1f3b71 100644 (file)
@@ -1110,6 +1110,7 @@ static int wpa_config_parse_eap(const struct parse_data *data,
 
        wpa_hexdump(MSG_MSGDUMP, "eap methods",
                    (u8 *) methods, num_methods * sizeof(*methods));
+       os_free(ssid->eap.eap_methods);
        ssid->eap.eap_methods = methods;
        return errors ? -1 : 0;
 }