qcacld-3.0: Add pointer validation check lim_send_probe_req_mgmt_frame()

Add pointer validation check for variable 'additional_ie' in
lim_send_probe_req_mgmt_frame() API before derefernce it.

Change-Id: I83f24b0707b129445b3b6bcdb84a5572aa4f0ccd
CRs-Fixed: 2232743
This commit is contained in:
Sandeep Puligilla 2018-04-30 15:31:17 -07:00 • committed by nshrivas
commit 493fea2572

View file

@ -347,7 +347,7 @@ lim_send_probe_req_mgmt_frame(tpAniSirGlobal mac_ctx,
pe_debug("Populate HE IEs");
populate_dot11f_he_caps(mac_ctx, pesession, &pr.he_cap);
if (addn_ielen) {
if (addn_ielen && additional_ie) {
qdf_mem_zero((uint8_t *)&extracted_ext_cap,
sizeof(tDot11fIEExtCap));
sir_status = lim_strip_extcap_update_struct(mac_ctx,