From e48085b5f848ee29a8104bd83661e6ab06a90118 Mon Sep 17 00:00:00 2001 From: Michael Zillgith Date: Wed, 27 Jul 2022 15:59:33 +0100 Subject: [PATCH] - fixed wrong check for empty itemId --- src/iec61850/client/ied_connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iec61850/client/ied_connection.c b/src/iec61850/client/ied_connection.c index 5bd1a40b..7bb8a1f2 100644 --- a/src/iec61850/client/ied_connection.c +++ b/src/iec61850/client/ied_connection.c @@ -3231,7 +3231,7 @@ IedConnection_deleteDataSetAsync(IedConnection self, IedClientError* error, cons MmsError mmsError; - if ((domainId == NULL) || (itemId == NULL)) { + if ((domainId == NULL) || (itemId[0] == 0)) { *error = IED_ERROR_OBJECT_REFERENCE_INVALID; return 0; }