summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CORE/MAC/src/pe/lim/limProcessAssocRspFrame.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/CORE/MAC/src/pe/lim/limProcessAssocRspFrame.c b/CORE/MAC/src/pe/lim/limProcessAssocRspFrame.c
index 9a743b89052b..76481fd5dc26 100644
--- a/CORE/MAC/src/pe/lim/limProcessAssocRspFrame.c
+++ b/CORE/MAC/src/pe/lim/limProcessAssocRspFrame.c
@@ -544,16 +544,18 @@ limProcessAssocRspFrame(tpAniSirGlobal pMac, tANI_U8 *pRxPacketInfo, tANI_U8 sub
psessionEntry->assocRspLen = 0;
}
- psessionEntry->assocRsp = vos_mem_malloc(frameLen);
- if (NULL == psessionEntry->assocRsp)
- {
- PELOGE(limLog(pMac, LOGE, FL("Unable to allocate memory to store assoc response, len = %d"), frameLen);)
- }
- else
- {
- //Store the Assoc response. This is sent to csr/hdd in join cnf response.
- vos_mem_copy(psessionEntry->assocRsp, pBody, frameLen);
- psessionEntry->assocRspLen = frameLen;
+ if (frameLen) {
+ psessionEntry->assocRsp = vos_mem_malloc(frameLen);
+ if (NULL == psessionEntry->assocRsp)
+ {
+ PELOGE(limLog(pMac, LOGE, FL("Unable to allocate memory to store assoc response, len = %d"), frameLen);)
+ }
+ else
+ {
+ //Store the Assoc response. This is sent to csr/hdd in join cnf response.
+ vos_mem_copy(psessionEntry->assocRsp, pBody, frameLen);
+ psessionEntry->assocRspLen = frameLen;
+ }
}
#ifdef WLAN_FEATURE_VOWIFI_11R