]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
auth: check return value of keyring->get_secret 5305/head
authorJohn Spray <john.spray@redhat.com>
Tue, 21 Jul 2015 15:09:32 +0000 (16:09 +0100)
committerJohn Spray <john.spray@redhat.com>
Tue, 21 Jul 2015 15:13:10 +0000 (16:13 +0100)
commit64e5041008744362fdbb16e16bc3e049a2d426aa
tree7031f995f42fd728911ed4476cc1a21559150efe
parent9e7955e42f47f93dd802401505d2e642abce491a
auth: check return value of keyring->get_secret

get_secret can fail to populate the passed CryptoKey, for
example if the entity name is not found in the keyring.  In
this case, attempts to use the CryptoKey will lead to
segfaults.

Fixes: #12417
Signed-off-by: John Spray <john.spray@redhat.com>
src/auth/cephx/CephxClientHandler.cc