From fd84d21c1046b68a23abdf9a58f6ece4d10c513c Mon Sep 17 00:00:00 2001 From: Michael Zillgith Date: Fri, 20 Mar 2020 16:56:31 +0100 Subject: [PATCH] - IEC 61850 client: fixed bug in ClientReportControlBlock - some allowed structures for RCB were rejected --- src/iec61850/client/client_report_control.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/iec61850/client/client_report_control.c b/src/iec61850/client/client_report_control.c index 07f6df0c..5373c417 100644 --- a/src/iec61850/client/client_report_control.c +++ b/src/iec61850/client/client_report_control.c @@ -438,7 +438,8 @@ clientReportControlBlock_updateValues(ClientReportControlBlock self, MmsValue* v if (!checkElementType(values, 12, MMS_BINARY_TIME)) return false; if (rcbElementCount == 14) { - if (!checkElementType(values, 13, MMS_OCTET_STRING)) return false; + if (!checkElementType(values, 13, MMS_OCTET_STRING) && !checkElementType(values, 13, MMS_INTEGER)) + return false; } else if (rcbElementCount == 15) { if (!checkElementType(values, 13, MMS_INTEGER)) return false;