aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-01-16 11:02:11 (GMT)
committerJouni Malinen <j@w1.fi>2011-01-16 11:02:11 (GMT)
commitb13d3d63d5756cda200972bf64f735e8e4c9b28b (patch)
tree9890f78457d2daa1ed4d6f2f49e75a7748946f70 /src
parentbc8318acbcd05b76201507e63e98d888ccc93405 (diff)
downloadhostap-b13d3d63d5756cda200972bf64f735e8e4c9b28b.zip
hostap-b13d3d63d5756cda200972bf64f735e8e4c9b28b.tar.gz
hostap-b13d3d63d5756cda200972bf64f735e8e4c9b28b.tar.bz2
EAP-pwd: Use os_free to free memory allocated with os_malloc
The direct use of free() caused a crash with CONFIG_WPA_TRACE=y.
Diffstat (limited to 'src')
-rw-r--r--src/eap_common/eap_pwd_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eap_common/eap_pwd_common.c b/src/eap_common/eap_pwd_common.c
index 3dbe9e4..5cd0a94 100644
--- a/src/eap_common/eap_pwd_common.c
+++ b/src/eap_common/eap_pwd_common.c
@@ -257,7 +257,7 @@ int compute_password_element(EAP_PWD_group *grp, u16 num,
BN_free(cofactor);
BN_free(x_candidate);
BN_free(rnd);
- free(prfbuf);
+ os_free(prfbuf);
return ret;
}