]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async: reset crypto processors in ProtocolV2::reset_recv_state().
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Mon, 11 Feb 2019 05:46:18 +0000 (06:46 +0100)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Thu, 21 Feb 2019 20:58:34 +0000 (21:58 +0100)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/msg/async/ProtocolV2.cc

index adac5927a9c9a7fc2b5a0ffb3221ba57be25628c..c5657128826caeb77185466db31cda41a6b6216f 100644 (file)
@@ -622,6 +622,8 @@ uint64_t ProtocolV2::discard_requeued_up_to(uint64_t out_seq, uint64_t seq) {
 void ProtocolV2::reset_recv_state() {
   if (state == CONNECTING) {
     auth_meta.reset(new AuthConnectionMeta);
+    session_stream_handlers.tx.reset(nullptr);
+    session_stream_handlers.rx.reset(nullptr);
   }
 
   // clean read and write callbacks