Skip to content

Commit

Permalink
remove destructor ShareData_Recv: log a useless information
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpoelen committed Oct 23, 2023
1 parent 1cb350e commit 3820b72
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/core/RDP/share.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,15 +584,6 @@ struct ShareData_Recv : private CheckShareData_Recv
LOG(LOG_INFO, " * compressedLength = %d (2 bytes)", int(compressedLen));
LOG(LOG_INFO, " * payload (%zu byte(s))", payload.in_remain());
}

~ShareData_Recv() noexcept(false) {
if (!this->payload.check_end()) {
LOG( LOG_INFO
, "~ShareData_Recv: some payload data were not consumed len=%u compressedLen=%u remains=%zu"
, this->len, this->compressedLen, payload.in_remain());
throw Error(ERR_SEC);
}
}
}; // END CLASS ShareData_Recv

//##############################################################################
Expand Down

0 comments on commit 3820b72

Please sign in to comment.