Merge pull request #20074 from taosdata/fix/TD-22567

fix(dnd/ep): failed with invalid ep.json
This commit is contained in:
Xiaoyu Wang 2023-02-21 17:27:30 +08:00 committed by GitHub
commit 53e4dfa12e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -402,7 +402,7 @@ static int32_t dmDecodeEpPairs(SJson *pJson, SDnodeData *pData) {
int32_t code = 0;
SJson *dnodes = tjsonGetObjectItem(pJson, "dnodes");
if (dnodes == NULL) return 0;
if (dnodes == NULL) return -1;
int32_t numOfDnodes = tjsonGetArraySize(dnodes);
for (int32_t i = 0; i < numOfDnodes; ++i) {