Commit bb0e681d authored by Ilya Dryomov's avatar Ilya Dryomov

libceph: directly skip to the end of redirect reply

Coverity complains about a double write to *p.  Don't bother with
osd_instructions and directly skip to the end of redirect reply.
Reported-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent 4d8b8fb4
......@@ -3483,9 +3483,6 @@ static int ceph_redirect_decode(void **p, void *end,
goto e_inval;
}
len = ceph_decode_32(p);
*p += len; /* skip osd_instructions */
/* skip the rest */
*p = struct_end;
out:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment