]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/MonClient: discard old challenge if authorizer is bad
authorSage Weil <sage@redhat.com>
Tue, 23 Apr 2019 18:52:07 +0000 (13:52 -0500)
committerSage Weil <sage@redhat.com>
Wed, 24 Apr 2019 18:46:04 +0000 (13:46 -0500)
commitfc8d9c11350a908d61f12a1ee34be589fc1af820
tree21da5d604ac6b087d340aa55aa2826d031046459
parentc58c5754dfd26eef359cad8b29e825120af59c64
mon/MonClient: discard old challenge if authorizer is bad

If we are a server/accepter, and we get a bad authorizer, discard our old
challenge, since the previous exchange has failed.  This way if the client
retries, their new authorize attempt won't conflict with our old challenge.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MonClient.cc