]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
EAP-pwd: Use os_free to free memory allocated with os_malloc
authorJouni Malinen <j@w1.fi>
Sun, 16 Jan 2011 11:02:11 +0000 (13:02 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 16 Jan 2011 11:02:11 +0000 (13:02 +0200)
The direct use of free() caused a crash with CONFIG_WPA_TRACE=y.

src/eap_common/eap_pwd_common.c

index 3dbe9e443d25f43a79d626241f8529c9a332c272..5cd0a943692365991180ae1114448a6f27958452 100644 (file)
@@ -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;
 }