mirror of
https://github.com/ceph/ceph
synced 2025-03-25 11:48:05 +00:00
Merge PR #31154 into master
* refs/pull/31154/head: auth/cephx: always initialize local variables Reviewed-by: Neha Ojha <nojha@redhat.com>
This commit is contained in:
commit
b4974b42ff
@ -278,7 +278,7 @@ bool CephXTicketManager::verify_service_ticket_reply(CryptoKey& secret,
|
||||
bufferlist::const_iterator& indata)
|
||||
{
|
||||
__u8 service_ticket_reply_v;
|
||||
uint32_t num;
|
||||
uint32_t num = 0;
|
||||
try {
|
||||
decode(service_ticket_reply_v, indata);
|
||||
decode(num, indata);
|
||||
@ -289,7 +289,7 @@ bool CephXTicketManager::verify_service_ticket_reply(CryptoKey& secret,
|
||||
ldout(cct, 10) << "verify_service_ticket_reply got " << num << " keys" << dendl;
|
||||
|
||||
for (int i=0; i<(int)num; i++) {
|
||||
uint32_t type;
|
||||
uint32_t type = 0;
|
||||
try {
|
||||
decode(type, indata);
|
||||
} catch (buffer::error& e) {
|
||||
|
Loading…
Reference in New Issue
Block a user