- IED server: GoCB has invalid data set reference when datSet="" in SCL file

pull/331/head
Michael Zillgith 5 years ago
parent 4e15343f5b
commit bd4bd0fab6

@ -754,7 +754,7 @@ GOOSE_createGOOSEControlBlocks(MmsMapping* self, MmsDomain* domain,
mmsGCB->goId = StringUtils_copyString(gooseControlBlock->appId); mmsGCB->goId = StringUtils_copyString(gooseControlBlock->appId);
} }
if (gooseControlBlock->dataSetName != NULL) if ((gooseControlBlock->dataSetName != NULL) && (gooseControlBlock->dataSetName[0] != 0))
mmsGCB->dataSetRef = createDataSetReference(MmsDomain_getName(domain), mmsGCB->dataSetRef = createDataSetReference(MmsDomain_getName(domain),
logicalNode->name, gooseControlBlock->dataSetName); logicalNode->name, gooseControlBlock->dataSetName);
else else

Loading…
Cancel
Save