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

Commit b433f100 authored by sheenam monga's avatar sheenam monga
Browse files

wlan: Initialize the pmkid cache variable

Invalid memory length passed to memcpy triggered
crash and it is due to unintialized stack variable.

Initialize pmkid cache variable to zero.

Change-Id: I942d83ca0fe1e17f85739f64faf87047de816335
CRs-Fixed: 2585222
parent f950e558
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4226,6 +4226,8 @@ tANI_U8 csrConstructRSNIe( tHalHandle hHal, tANI_U32 sessionId, tCsrRoamProfile

    smsLog(pMac, LOGW, "%s called...", __func__);

    vos_mem_zero(&pmkid_cache, sizeof(pmkid_cache));

    do
    {
        if ( !csrIsProfileRSN( pProfile ) ) break;