ceph: adjust masked struct_v variable names
Reported-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
6e19a16ef2
commit
b736b3d9d0
|
@ -127,7 +127,7 @@ static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac,
|
||||||
int ret;
|
int ret;
|
||||||
char *dbuf;
|
char *dbuf;
|
||||||
char *ticket_buf;
|
char *ticket_buf;
|
||||||
u8 struct_v;
|
u8 reply_struct_v;
|
||||||
|
|
||||||
dbuf = kmalloc(TEMP_TICKET_BUF_LEN, GFP_NOFS);
|
dbuf = kmalloc(TEMP_TICKET_BUF_LEN, GFP_NOFS);
|
||||||
if (!dbuf)
|
if (!dbuf)
|
||||||
|
@ -139,14 +139,14 @@ static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac,
|
||||||
goto out_dbuf;
|
goto out_dbuf;
|
||||||
|
|
||||||
ceph_decode_need(&p, end, 1 + sizeof(u32), bad);
|
ceph_decode_need(&p, end, 1 + sizeof(u32), bad);
|
||||||
struct_v = ceph_decode_8(&p);
|
reply_struct_v = ceph_decode_8(&p);
|
||||||
if (struct_v != 1)
|
if (reply_struct_v != 1)
|
||||||
goto bad;
|
goto bad;
|
||||||
num = ceph_decode_32(&p);
|
num = ceph_decode_32(&p);
|
||||||
dout("%d tickets\n", num);
|
dout("%d tickets\n", num);
|
||||||
while (num--) {
|
while (num--) {
|
||||||
int type;
|
int type;
|
||||||
u8 struct_v;
|
u8 tkt_struct_v, blob_struct_v;
|
||||||
struct ceph_x_ticket_handler *th;
|
struct ceph_x_ticket_handler *th;
|
||||||
void *dp, *dend;
|
void *dp, *dend;
|
||||||
int dlen;
|
int dlen;
|
||||||
|
@ -165,8 +165,8 @@ static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac,
|
||||||
type = ceph_decode_32(&p);
|
type = ceph_decode_32(&p);
|
||||||
dout(" ticket type %d %s\n", type, ceph_entity_type_name(type));
|
dout(" ticket type %d %s\n", type, ceph_entity_type_name(type));
|
||||||
|
|
||||||
struct_v = ceph_decode_8(&p);
|
tkt_struct_v = ceph_decode_8(&p);
|
||||||
if (struct_v != 1)
|
if (tkt_struct_v != 1)
|
||||||
goto bad;
|
goto bad;
|
||||||
|
|
||||||
th = get_ticket_handler(ac, type);
|
th = get_ticket_handler(ac, type);
|
||||||
|
@ -186,8 +186,8 @@ static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac,
|
||||||
dend = dbuf + dlen;
|
dend = dbuf + dlen;
|
||||||
dp = dbuf;
|
dp = dbuf;
|
||||||
|
|
||||||
struct_v = ceph_decode_8(&dp);
|
tkt_struct_v = ceph_decode_8(&dp);
|
||||||
if (struct_v != 1)
|
if (tkt_struct_v != 1)
|
||||||
goto bad;
|
goto bad;
|
||||||
|
|
||||||
memcpy(&old_key, &th->session_key, sizeof(old_key));
|
memcpy(&old_key, &th->session_key, sizeof(old_key));
|
||||||
|
@ -224,7 +224,7 @@ static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac,
|
||||||
tpend = tp + dlen;
|
tpend = tp + dlen;
|
||||||
dout(" ticket blob is %d bytes\n", dlen);
|
dout(" ticket blob is %d bytes\n", dlen);
|
||||||
ceph_decode_need(&tp, tpend, 1 + sizeof(u64), bad);
|
ceph_decode_need(&tp, tpend, 1 + sizeof(u64), bad);
|
||||||
struct_v = ceph_decode_8(&tp);
|
blob_struct_v = ceph_decode_8(&tp);
|
||||||
new_secret_id = ceph_decode_64(&tp);
|
new_secret_id = ceph_decode_64(&tp);
|
||||||
ret = ceph_decode_buffer(&new_ticket_blob, &tp, tpend);
|
ret = ceph_decode_buffer(&new_ticket_blob, &tp, tpend);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
|
Loading…
Reference in New Issue