Skip to content

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeuz committed Dec 7, 2023
1 parent 9cab5a9 commit 12e80f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion communication/src/coap_channel_new.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1236,9 +1236,9 @@ int CoapChannel::sendMessage(RefCountPtr<CoapMessage> msg) {
CHECK_PROTOCOL(protocol_->get_channel().send(msgBuf_));
msg->coapId = msgBuf_.get_id();
msg->state = MessageState::WAIT_ACK;
msg->pos = nullptr;
addRefToList(unackMsgs_, std::move(msg));
releaseMessageBuffer();
msg->pos = nullptr;
return 0;
}

Expand Down
1 change: 1 addition & 0 deletions system/src/ledger/ledger_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1139,6 +1139,7 @@ int LedgerManager::sendSubscribeRequest() {
return false;
}
std::memcpy(pbLedger.scope_id.bytes, ctx->scopeId.data, ctx->scopeId.size);
pbLedger.scope_id.size = ctx->scopeId.size;
if (!pb_encode_tag_for_field(stream, field) ||
!pb_encode_submessage(stream, &PB_LEDGER(SubscribeRequest_Ledger_msg), &pbLedger)) {
return false;
Expand Down

0 comments on commit 12e80f5

Please sign in to comment.