|
@@ -113,7 +113,7 @@ BOOL ROUTEbRelay (PSDevice pDevice, PBYTE pbySkbData, UINT uDataLen, UINT uNodeI
|
|
}
|
|
}
|
|
|
|
|
|
if (pDevice->bEnableHostWEP) {
|
|
if (pDevice->bEnableHostWEP) {
|
|
- if (uNodeIndex >= 0) {
|
|
|
|
|
|
+ if (uNodeIndex < MAX_NODE_NUM + 1) {
|
|
pTransmitKey = &STempKey;
|
|
pTransmitKey = &STempKey;
|
|
pTransmitKey->byCipherSuite = pMgmt->sNodeDBTable[uNodeIndex].byCipherSuite;
|
|
pTransmitKey->byCipherSuite = pMgmt->sNodeDBTable[uNodeIndex].byCipherSuite;
|
|
pTransmitKey->dwKeyIndex = pMgmt->sNodeDBTable[uNodeIndex].dwKeyIndex;
|
|
pTransmitKey->dwKeyIndex = pMgmt->sNodeDBTable[uNodeIndex].dwKeyIndex;
|