Skip to content

Commit f291f6c

Browse files
committed
🐛 set negative flag on unexpected message
1 parent 34850fc commit f291f6c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Server.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,7 @@ void Server::onUnexpectedMessage(
739739

740740
// manipulate and send copy instead of original ASDU
741741
CS101_ASDU cp = CS101_ASDU_clone(asdu, nullptr);
742+
CS101_ASDU_setNegative(cp, true);
742743
switch (cause) {
743744
case INVALID_TYPE_ID:
744745
DEBUG_PRINT(Debug::Server, "on_unexpected_message] Invalid type id");

0 commit comments

Comments
 (0)