X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=net%2Fceph%2Farmor.c;h=1fc1ee11dfa28088f00becf58d7c22fd2420cb36;hb=a3d9dd89b781bdcb14201847608b658442de812b;hp=eb2a666b0be7011e9b27618c62060416543cb706;hpb=5c16d2c813a7490408e966f52b881e70fc8d7f77;p=karo-tx-linux.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]);