aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sasp.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-sasp.c')
-rw-r--r--epan/dissectors/packet-sasp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-sasp.c b/epan/dissectors/packet-sasp.c
index 78a7f996d5..6ac2eaf07b 100644
--- a/epan/dissectors/packet-sasp.c
+++ b/epan/dissectors/packet-sasp.c
@@ -358,7 +358,7 @@ dissect_sasp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data
"Invalid SASP Header Type [0x%04x]", hdr_type);
/* XXX: The folowing should actually happen automatically ? */
col_set_str(pinfo->cinfo, COL_INFO, "[Malformed: Invalid SASP Header Type]");
- return tvb_captured_length(tvb);
+ return tvb_length(tvb);
}
offset += 2;
@@ -463,7 +463,7 @@ dissect_sasp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data
"Unknown SASP Message Type: 0x%4x", msg_type);
break;
}
- return tvb_captured_length(tvb);
+ return tvb_length(tvb);
}
@@ -472,7 +472,7 @@ dissect_sasp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
{
tcp_dissect_pdus(tvb, pinfo, tree, sasp_desegment, SASP_MIN_PACKET_LEN, get_sasp_pdu_len,
dissect_sasp_pdu, data);
- return tvb_captured_length(tvb);
+ return tvb_length(tvb);
}