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: Colin Ian King <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>
This commit is contained in:
Ilya Dryomov committed 2020-03-30 12:42:41 +02:00
1 parent 4d8b8fb494
commit bb0e681dda
1 file changed
-3
-3
View File
@@ -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: