Skip to content

Commit

Permalink
- IEC 61850 server: RCB - fixed problem that other client can "steal"…
Browse files Browse the repository at this point in the history
… reservation
  • Loading branch information
mzillgith committed Apr 3, 2020
1 parent 4871989 commit 1744616
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/iec61850/server/mms_mapping/reporting.c
Original file line number Diff line number Diff line change
Expand Up @@ -1365,6 +1365,11 @@ Reporting_RCBWriteAccessHandler(MmsMapping* self, ReportControl* rc, char* eleme
}
}

if ((rc->reserved) && (rc->clientConnection != connection)) {
retVal = DATA_ACCESS_ERROR_TEMPORARILY_UNAVAILABLE;
goto exit_function;
}

if (strcmp(elementName, "RptEna") == 0) {

if (value->value.boolean == true) {
Expand Down

0 comments on commit 1744616

Please sign in to comment.