diff options
author | Johannes Berg <johannes.berg@intel.com> | 2014-09-10 13:39:54 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-09-11 12:07:18 +0200 |
commit | b47f610bd6e88f9d1032132d81b23c928a645e9d (patch) | |
tree | b56c9e36f4748850cd1def47a92adbcda9d97c9f /net/wireless/wext-sme.c | |
parent | b1e9be8775b85d761cdb91386200a04d741f6a0d (diff) | |
download | linux-b47f610bd6e88f9d1032132d81b23c928a645e9d.tar.gz linux-b47f610bd6e88f9d1032132d81b23c928a645e9d.tar.bz2 linux-b47f610bd6e88f9d1032132d81b23c928a645e9d.zip |
cfg80211: clear connect keys when freeing them
When freeing the connect keys, clear the memory to avoid
having the key material stick around in memory "forever".
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/wext-sme.c')
-rw-r--r-- | net/wireless/wext-sme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/wext-sme.c b/net/wireless/wext-sme.c index c7e5c8eb4f24..368611c05739 100644 --- a/net/wireless/wext-sme.c +++ b/net/wireless/wext-sme.c @@ -57,7 +57,7 @@ int cfg80211_mgd_wext_connect(struct cfg80211_registered_device *rdev, err = cfg80211_connect(rdev, wdev->netdev, &wdev->wext.connect, ck, prev_bssid); if (err) - kfree(ck); + kzfree(ck); return err; } |