]> git.ipfire.org Git - thirdparty/hostap.git/commit
EAP-pwd: Avoid double-frees on some error paths
authorJouni Malinen <j@w1.fi>
Sat, 30 Jun 2012 13:16:32 +0000 (16:16 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 30 Jun 2012 13:16:32 +0000 (16:16 +0300)
commit8350d0afd8f5a93c39c2569bd78b8f5c92f85348
treea3485c78951b3e73aae0b20ea5face2d565ef7d8
parent0f27f15911c4ed68e757f3af9f65f7696a321876
EAP-pwd: Avoid double-frees on some error paths

At least some error paths (e.g., hitting the limit on hunt-and-peck
iterations) could have resulted in double-freeing of some memory
allocations. Avoid this by setting the pointers to NULL after they have
been freed instead of trying to free the data structure in a location
where some external references cannot be cleared. [Bug 453]

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