git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ceph: fix authenticator buffer size calculation
[safe/jmp/linux-2.6]
/
fs
/
ceph
/
auth_none.c
diff --git
a/fs/ceph/auth_none.c
b/fs/ceph/auth_none.c
index
631017e
..
b4ef6f0
100644
(file)
--- a/
fs/ceph/auth_none.c
+++ b/
fs/ceph/auth_none.c
@@
-62,6
+62,7
@@
static int ceph_auth_none_create_authorizer(
if (!ai->built_authorizer) {
p = au->buf;
end = p + sizeof(au->buf);
+ ceph_encode_8(&p, 1);
ret = ceph_entity_name_encode(ac->name, &p, end - 8);
if (ret < 0)
goto bad;