]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
libceph: eliminate unnecessary allocation in process_one_ticket()
authorIlya Dryomov <idryomov@redhat.com>
Wed, 22 Oct 2014 14:15:37 +0000 (18:15 +0400)
committerYan, Zheng <zyan@redhat.com>
Mon, 27 Oct 2014 21:39:47 +0000 (14:39 -0700)
commitb92ff538505a6136e39ca425261213ebf905320c
treebfe47b645ce81b83949b2b2801cfcd000ec18c85
parent6d0ce51ea29d86b25d2ac8870dbbbb528262229e
libceph: eliminate unnecessary allocation in process_one_ticket()

Commit c27a3e4d667f ("libceph: do not hard code max auth ticket len")
while fixing a buffer overlow tried to keep the same as much of the
surrounding code as possible and introduced an unnecessary kmalloc() in
the unencrypted ticket path.  It is likely to fail on huge tickets, so
get rid of it.

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
net/ceph/auth_x.c