Commit bb0e681d authored by Ilya Dryomov's avatar Ilya Dryomov
Browse files

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
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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: