forked from osmocom/wireshark
Attempt to squelch Coverity CID 222.
svn path=/trunk/; revision=20551
This commit is contained in:
parent
94cf826452
commit
e7bda1efe4
|
@ -4021,8 +4021,10 @@ dissect_scsi_payload (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
|
||||||
|
|
||||||
/* Start reassembly */
|
/* Start reassembly */
|
||||||
|
|
||||||
if (tvb_length_remaining(tvb, offset) >= 0 &&
|
if (tvb_length_remaining(tvb, offset) < 0) {
|
||||||
(tvb_length_remaining(tvb,offset) + relative_offset) != expected_length) {
|
goto end_of_payload;
|
||||||
|
}
|
||||||
|
if ((tvb_length_remaining(tvb,offset) + relative_offset) != expected_length) {
|
||||||
more_frags = TRUE;
|
more_frags = TRUE;
|
||||||
}
|
}
|
||||||
ipfd_head = fragment_add_check(tvb, offset, pinfo,
|
ipfd_head = fragment_add_check(tvb, offset, pinfo,
|
||||||
|
|
Loading…
Reference in New Issue