qcacld-3.0: Check for non zero buffer pointer for FILS info
Currently the length of every FILS information is updated before buffer pointer check which results in invalid update of FILS information. Add non-zero buffer pointer check for all parameters of FILS information. Change-Id: I2065f2f1984da473b5e97ffa25f4ab519e091c5b CRs-Fixed: 2228062
This commit is contained in:
parent
569b3fe0fb
commit
77a35ac15b
@ -18280,6 +18280,14 @@ static bool wlan_hdd_fils_data_in_limits(struct cfg80211_connect_params *req)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!req->fils_erp_rrk || !req->fils_erp_realm ||
|
||||
!req->fils_erp_username) {
|
||||
hdd_err("buffer incorrect, user=%pK rrk=%pK realm=%pK",
|
||||
req->fils_erp_username, req->fils_erp_rrk,
|
||||
req->fils_erp_realm);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user