Merge branch 'enh/ipWhiteList' of https://github.com/taosdata/TDengine into enh/ipWhiteList
This commit is contained in:
parent
2af180c763
commit
0e496ab0c5
|
@ -1144,7 +1144,7 @@ static int32_t mndCreateUser(SMnode *pMnode, char *acct, SCreateUserReq *pCreate
|
|||
idx++;
|
||||
}
|
||||
|
||||
for (int i = idx, j = 0; i < numOfRanges; i++, j++) {
|
||||
for (int i = idx, j = 0; i < numOfRanges && j < pCreate->numIpRanges; i++, j++) {
|
||||
p->pIpRange[i].ip = pCreate->pIpRanges[j].ip;
|
||||
p->pIpRange[i].mask = pCreate->pIpRanges[j].mask;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue