Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189197
b: refs/heads/master
c: 5b3dbb4
h: refs/heads/master
i:
  189195: b8d3774
v: v3
  • Loading branch information
Sage Weil committed Mar 21, 2010
1 parent 3ae2dc7 commit 200f3b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 807c86e2ceba8febe79b289d50cd0d5e0b0af917
refs/heads/master: 5b3dbb44ab40660a080d03585bd35f45b2890c49
6 changes: 5 additions & 1 deletion trunk/fs/ceph/auth_x.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac,
struct timespec validity;
struct ceph_crypto_key old_key;
void *tp, *tpend;
struct ceph_buffer *new_ticket_blob;

ceph_decode_need(&p, end, sizeof(u32) + 1, bad);

Expand Down Expand Up @@ -223,9 +224,12 @@ static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac,
ceph_decode_need(&tp, tpend, 1 + sizeof(u64), bad);
struct_v = ceph_decode_8(&tp);
th->secret_id = ceph_decode_64(&tp);
ret = ceph_decode_buffer(&th->ticket_blob, &tp, tpend);
ret = ceph_decode_buffer(&new_ticket_blob, &tp, tpend);
if (ret)
goto out;
if (th->ticket_blob)
ceph_buffer_put(th->ticket_blob);
th->ticket_blob = new_ticket_blob;
dout(" got ticket service %d (%s) secret_id %lld len %d\n",
type, ceph_entity_type_name(type), th->secret_id,
(int)th->ticket_blob->vec.iov_len);
Expand Down

0 comments on commit 200f3b9

Please sign in to comment.