]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
auth: check return value of keyring->get_secret 5382/head
authorJohn Spray <john.spray@redhat.com>
Tue, 21 Jul 2015 15:09:32 +0000 (16:09 +0100)
committerLoic Dachary <ldachary@redhat.com>
Tue, 28 Jul 2015 15:17:22 +0000 (17:17 +0200)
commit1e055782f5ade94c19c2614be0d61d797490701e
tree31e0bd39a4b3c6564b608152ececb1062d91b408
parent45beb86423c3bd74dbafd36c6822e71ad9680e17
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>
(cherry picked from commit 64e5041008744362fdbb16e16bc3e049a2d426aa)
src/auth/cephx/CephxClientHandler.cc