X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fceph%2Farmor.c;h=1fc1ee11dfa28088f00becf58d7c22fd2420cb36;hb=0adfc56ce8fdc5c17630434e49f30536ba7b8559;hp=eb2a666b0be7011e9b27618c62060416543cb706;hpb=e0e170bd7ded2ec16e2813d63c0faff43193fde8;p=pandora-kernel.git diff --git a/net/ceph/armor.c b/net/ceph/armor.c index eb2a666b0be7..1fc1ee11dfa2 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]);