diff options
| author | Mahesh A Saptasagar <c_msapta@qti.qualcomm.com> | 2015-05-06 12:03:07 +0530 |
|---|---|---|
| committer | AnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com> | 2015-05-08 15:44:03 +0530 |
| commit | c04dfd0691f97fb2cb111fb71ea016dab7ae2a20 (patch) | |
| tree | cb0109663d84a91bbcf4a2ce8408b11c5226ec23 | |
| parent | 970ab3632cc502233e0b03ea077ed260202f5abb (diff) | |
wlan: Correct the condition which validates size of ACL MAC list.
Correct the condition which validates size of ACL MAC Address list.
CRs-Fixed: 833397
Change-Id: Iec255bf6e55cf75e4523ad143669a1d03e5c9536
| -rw-r--r-- | CORE/SAP/src/sapFsm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CORE/SAP/src/sapFsm.c b/CORE/SAP/src/sapFsm.c index ace582e3c755..b4a8acdd6822 100644 --- a/CORE/SAP/src/sapFsm.c +++ b/CORE/SAP/src/sapFsm.c @@ -4115,7 +4115,7 @@ sapAddMacToACL(v_MACADDR_t *macList, v_U8_t *size, v_U8_t *peerMac) v_SINT_t nRes = -1; int i; - if (NULL == macList || *size == 0 || *size > MAX_ACL_MAC_ADDRESS) { + if ((NULL == macList) || (*size > MAX_ACL_MAC_ADDRESS)) { VOS_TRACE(VOS_MODULE_ID_SAP, VOS_TRACE_LEVEL_INFO_HIGH, FL("either buffer is NULL or size = %d is incorrect."), *size); |
