aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-nsip.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-nsip.c')
-rw-r--r--epan/dissectors/packet-nsip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-nsip.c b/epan/dissectors/packet-nsip.c
index 8c01ab31b2..b853fa1e68 100644
--- a/epan/dissectors/packet-nsip.c
+++ b/epan/dissectors/packet-nsip.c
@@ -606,7 +606,7 @@ decode_ie(nsip_ie_t *ie, build_info_t *bi) {
int org_offset = bi->offset;
- if (tvb_length_remaining(bi->tvb, bi->offset) < 1) {
+ if (tvb_captured_length_remaining(bi->tvb, bi->offset) < 1) {
return;
}
switch (ie->format) {
@@ -700,7 +700,7 @@ decode_pdu_ns_unitdata(build_info_t *bi) {
call_dissector(bssgp_handle, next_tvb, bi->pinfo, bi->parent_tree);
}
else {
- sdu_length = tvb_length_remaining(bi->tvb, bi->offset);
+ sdu_length = tvb_captured_length_remaining(bi->tvb, bi->offset);
proto_tree_add_bytes_format(bi->nsip_tree, hf_nsip_ns_sdu, bi->tvb, bi->offset, sdu_length,
NULL, "NS SDU (%u bytes)", sdu_length);
}