]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/MonClient: do not dereference auth_supported.end() 27215/head
authorKefu Chai <kchai@redhat.com>
Tue, 26 Mar 2019 16:02:01 +0000 (00:02 +0800)
committerSage Weil <sage@redhat.com>
Wed, 27 Mar 2019 14:41:59 +0000 (09:41 -0500)
commit19495cd75a6f0d01c8b527fbeab4eeb8380909eb
tree05f263a981b5cf914b1e761af8c9d87d60b12949
parent5ad58494c5c615993b0cb28c54816c589f373287
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>
(cherry picked from commit 998b1925bd6d19b2b32141b92de66b77027130a0)
src/mon/MonClient.cc