qcacmn: Fix the pointer reset in cm_allocate_and_copy_ies_and_keys

In cm_allocate_and_copy_ies_and_keys instead of target's pointer
source's pointers are reset thus making the following code void

Fix this by resetting the target pointers which needs to be allocated
with new memory.

Change-Id: I4417492c43eb27833d365ec4aa644e07ed4eca51
CRs-fixed: 2884187
Šī revīzija ir iekļauta:
gaurank kathpalia
2021-02-23 17:04:11 +05:30
revīziju iesūtīja snandini
vecāks 76469c8aee
revīzija fffe13cbc9
2 mainīti faili ar 5 papildinājumiem un 5 dzēšanām

Parādīt failu

@@ -419,7 +419,7 @@ static void osif_cm_free_connect_req(struct wlan_cm_connect_req *connect_req)
{
if (connect_req->scan_ie.ptr) {
qdf_mem_free(connect_req->scan_ie.ptr);
connect_req->assoc_ie.ptr = NULL;
connect_req->scan_ie.ptr = NULL;
}
if (connect_req->assoc_ie.ptr) {