]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/MonClient: do not dereference auth_supported.end() 27196/head
authorKefu Chai <kchai@redhat.com>
Tue, 26 Mar 2019 16:02:01 +0000 (00:02 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 26 Mar 2019 16:08:01 +0000 (00:08 +0800)
commit998b1925bd6d19b2b32141b92de66b77027130a0
tree194ce9f009e3d337d3c58cd8fd5fcda6924d1e5c
parent4f7a5a0651da3573eebf4aded7ec8833b37b56fd
mon/MonClient: do not dereference auth_supported.end()

if we are unable to find a supported method in allowed_methods, we will
dereference `auth_supported.end()` for searching it in desperation.

Reported-by: xie xingguo <xie.xingguo@zte.com.cn>
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/MonClient.cc