summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandeep Puligilla <spuligil@codeaurora.org>2017-10-03 12:42:43 -0700
committersnandini <snandini@codeaurora.org>2017-10-03 22:04:46 -0700
commit998c3a947807fe0f37d1173d34fc027447e08fd2 (patch)
tree880f08c64fb9e3ea7c2c3dda03a3f08f5566cb47
parent1526bf402c3f42f494113f945a9d1b7dd86f2ee1 (diff)
qcacld-3.0: 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: Ib25812086f4d9f8399ce560d6aa7423a1978d04d CRs-Fixed: 2119987
-rw-r--r--core/sme/src/csr/csr_util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/sme/src/csr/csr_util.c b/core/sme/src/csr/csr_util.c
index f023ff01be02..dfc769d3eb9e 100644
--- a/core/sme/src/csr/csr_util.c
+++ b/core/sme/src/csr/csr_util.c
@@ -3324,6 +3324,7 @@ uint8_t csr_construct_rsn_ie(tHalHandle hHal, uint32_t sessionId,
tDot11fBeaconIEs *pIesLocal = pIes;
eCsrAuthType negAuthType = eCSR_AUTH_TYPE_UNKNOWN;
+ qdf_mem_zero(&pmkid_cache, sizeof(pmkid_cache));
do {
if (!csr_is_profile_rsn(pProfile))
break;