]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crypto: fix unbalanced ceph::crypto::init/ceph::crypto:shutdown 5887/head
authorYan, Zheng <zyan@redhat.com>
Wed, 5 Aug 2015 07:19:13 +0000 (15:19 +0800)
committerAbhishek Varshney <abhishek.varshney@flipkart.com>
Fri, 11 Sep 2015 11:01:47 +0000 (16:31 +0530)
commit3a50b904a2ffd613b695ead1b26c93278044d7df
tree242016b5f737d696117c5b436b5f611ea490fe48
parent6e22620165872a88ab4b75ed2fb93f61beb65d12
crypto: fix unbalanced ceph::crypto::init/ceph::crypto:shutdown

we may create a CephContext without calling common_init_finish(), then
delete the CephContext. In this case, ceph::crypto:init() is not called,
so CephContext::~CephContext() should not call ceph::crypto::shutdown().

Fixes: #12598
Signed-off-by: Yan, Zheng <zyan@redhat.com>
(cherry picked from commit 98a85ec6464d8ec3fc7f0c647ac97c8cf002ebe2)
src/common/ceph_context.cc
src/common/ceph_context.h
src/common/ceph_crypto.cc
src/common/common_init.cc