Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49691ba8 authored by Srinivas Dasari's avatar Srinivas Dasari Committed by Gerrit - the friendly Code Review server
Browse files

nl80211: Free connkeys on external authentication failure



The failure scenario while processing
NL80211_ATTR_EXTERNAL_AUTH_SUPPORT does not free
the connkeys. This commit addresses the same.

Change-Id: I8bf73b32875a2ddcc6c6fbd0a3167f52c6c02874
CRs-Fixed: 2643646
Signed-off-by: default avatarSrinivas Dasari <dasaris@codeaurora.org>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 17ed9893
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -8924,6 +8924,7 @@ static int nl80211_connect(struct sk_buff *skb, struct genl_info *info)

	if (nla_get_flag(info->attrs[NL80211_ATTR_EXTERNAL_AUTH_SUPPORT])) {
		if (!info->attrs[NL80211_ATTR_SOCKET_OWNER]) {
			kzfree(connkeys);
			return -EINVAL;
		}
		connect.flags |= CONNECT_REQ_EXTERNAL_AUTH_SUPPORT;