fix ip white for all users

This commit is contained in:
yihaoDeng 2023-09-27 16:08:09 +08:00
parent 48be800639
commit d0e1aec270
1 changed files with 3 additions and 1 deletions

View File

@ -321,11 +321,13 @@ void mndUpdateIpWhiteForAllUser(SMnode *pMnode, char *user, char *fqdn, int8_t t
char *key = taosHashGetKey(pIter, NULL);
void *elem = taosStrdup(key);
taosArrayPush(pUsers, &elem);
pIter = taosHashIterate(ipWhiteMgt.pIpWhiteTab, pIter);
}
for (int i = 0; i < taosArrayGetSize(pUsers); i++) {
char *p = taosArrayGetP(pUsers, i);
mndUpdateIpWhiteImpl(ipWhiteMgt.pIpWhiteTab, p, fqdn, type);
update |= mndUpdateIpWhiteImpl(ipWhiteMgt.pIpWhiteTab, p, fqdn, type);
taosMemoryFree(p);
}