qcacld-3.0: Fix possible NULL pointer dereference in lim_send_mlm_assoc_ind

In SAP mode, when a STA is associated, the assoc request is
stored in session_entry->parsedAssocReq. The function
lim_send_mlm_assoc_ind is called to indicate the association to
SME. In lim_send_mlm_assoc_ind, parsedAssocReq is copied to
assoc_req which fills the assoc_ind to be sent to sme,
and session_entry->parsedAssocReq is dereferenced before
validating it against NULL. This could result in NULL pointer
dereference.

Add NULL pointer check before dereferencing parsedAssocReq.
Return if it fails.

Change-Id: Ied2b5f64c0351a648c1d398f616450aa406fc82e
CRs-Fixed: 2348565
1 file changed