]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: Fix base64-decoding when input ends in newline.
authorTommi Virtanen <tommi.virtanen@dreamhost.com>
Wed, 2 Feb 2011 19:39:32 +0000 (11:39 -0800)
committerSage Weil <sage@newdream.net>
Tue, 15 Mar 2011 16:14:02 +0000 (09:14 -0700)
commitfa444d2b69a2aa736c747a2a4516607d06fa84e3
tree991e7a2d61dc8c950dbbe6082cbb10dfc3786e75
parent5f606d388b7d90e888f8599ea3bd433cadefba0e
libceph: Fix base64-decoding when input ends in newline.

It used to return -EINVAL because it thought the end was not aligned
to 4 bytes.

Clean up superfluous src < end test in if, the while itself guarantees
that.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
Signed-off-by: Sage Weil <sage@newdream.net>
net/ceph/armor.c