aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-scsi.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2015-06-06 15:19:44 +0200
committerPascal Quantin <pascal.quantin@gmail.com>2015-06-06 14:06:39 +0000
commit3cc1178bbfa306800bf1df3259c94588fb6a168e (patch)
tree26744a026a4aead093b4919cf030709cabf87726 /epan/dissectors/packet-scsi.c
parent31f5e79d20af2f9cb7cd2270d9217d79365e48ca (diff)
SCSI: There are identical sub-expressions 'tvb_reported_length_remaining(tvb, offset)' to the left and to the right of the '!=' operator found by PVS Studio (V501)
Change-Id: Iaf7ea99e983d3b42dedf2620250dec0f3d68f937 Reviewed-on: https://code.wireshark.org/review/8790 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-scsi.c')
-rw-r--r--epan/dissectors/packet-scsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-scsi.c b/epan/dissectors/packet-scsi.c
index 13d3903864..de1ce6f09e 100644
--- a/epan/dissectors/packet-scsi.c
+++ b/epan/dissectors/packet-scsi.c
@@ -6166,7 +6166,7 @@ dissect_scsi_payload(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
/* If we don't have the entire PDU there is no point in even trying
* reassembly
*/
- if (tvb_reported_length_remaining(tvb, offset) != tvb_reported_length_remaining(tvb, offset)) {
+ if (tvb_captured_length_remaining(tvb, offset) != tvb_reported_length_remaining(tvb, offset)) {
if (relative_offset) {
call_dissector(data_handle, tvb, pinfo, scsi_tree);
goto end_of_payload;