From 50b51746370001b80588e90ee22df5eb417ed63e Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Wed, 20 Feb 2019 02:24:24 +0100 Subject: [PATCH] msg/async, v2: get rid of magic number in SignedEncryptedFrame. Signed-off-by: Radoslaw Zarzynski --- src/msg/async/ProtocolV2.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/msg/async/ProtocolV2.cc b/src/msg/async/ProtocolV2.cc index ae373436bb9..b3f47d2d39d 100644 --- a/src/msg/async/ProtocolV2.cc +++ b/src/msg/async/ProtocolV2.cc @@ -385,7 +385,8 @@ struct SignedEncryptedFrame : public PayloadFrame { ceph::bufferlist plain_bl = \ protocol.session_stream_handlers.rx->authenticated_decrypt_update_final( std::move(bl), ProtocolV2::segment_t::DEFAULT_ALIGNMENT); - ceph_assert(plain_bl.length() + 16 == length); + ceph_assert(plain_bl.length() == length - \ + protocol.session_stream_handlers.rx->get_extra_size_at_final()); this->decode_frame(plain_bl.c_str(), plain_bl.length()); } }; -- 2.39.5