Skip to content

Commit

Permalink
Refs eProsima#3758. Fix session counter on registering remote partici…
Browse files Browse the repository at this point in the history
…pant. (eProsima#328)
  • Loading branch information
MiguelCompany authored Nov 19, 2018
1 parent 1ba8e34 commit 35db32e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpp/security/cryptography/AESGCMGMAC_KeyFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ ParticipantCryptoHandle * AESGCMGMAC_KeyFactory::register_matched_remote_partici


(*RPCrypto)->max_blocks_per_session = local_participant_handle->max_blocks_per_session;
(*RPCrypto)->session_block_counter = local_participant_handle->session_block_counter;
(*RPCrypto)->session_block_counter = local_participant_handle->max_blocks_per_session+1;
(*RPCrypto)->session_id = std::numeric_limits<uint32_t>::max();
if((*RPCrypto)->session_id == local_participant_handle->session_id)
(*RPCrypto)->session_id -= 1;
Expand Down

0 comments on commit 35db32e

Please sign in to comment.