X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=net%2Fceph%2Farmor.c;h=1fc1ee11dfa28088f00becf58d7c22fd2420cb36;hb=6124a4e430b64d1577438c8648c59e996d02e73e;hp=eb2a666b0be7011e9b27618c62060416543cb706;hpb=dc7c0b6a6d28b0de231728de963ed53a9cee85cf;p=~andy%2Flinux diff --git a/net/ceph/armor.c b/net/ceph/armor.c index eb2a666b0be..1fc1ee11dfa 100644 --- a/net/ceph/armor.c +++ b/net/ceph/armor.c @@ -78,8 +78,10 @@ int ceph_unarmor(char *dst, const char *src, const char *end) while (src < end) { int a, b, c, d; - if (src < end && src[0] == '\n') + if (src[0] == '\n') { src++; + continue; + } if (src + 4 > end) return -EINVAL; a = decode_bits(src[0]);