diff options
Diffstat (limited to 'epan/dissectors/packet-infiniband_sdp.c')
-rw-r--r-- | epan/dissectors/packet-infiniband_sdp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-infiniband_sdp.c b/epan/dissectors/packet-infiniband_sdp.c index 98d8fb47d1..55393e2e65 100644 --- a/epan/dissectors/packet-infiniband_sdp.c +++ b/epan/dissectors/packet-infiniband_sdp.c @@ -172,7 +172,7 @@ dissect_ib_sdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _ conversation_infiniband_data *convo_data = NULL; dissector_handle_t infiniband_handle; - if (tvb_length(tvb) < 16) /* check this has at least enough bytes for the BSDH */ + if (tvb_captured_length(tvb) < 16) /* check this has at least enough bytes for the BSDH */ return 0; if (gPREF_MAN_EN) { @@ -315,7 +315,7 @@ manual_override: col_append_fstr(pinfo->cinfo, COL_INFO, "(SDP %s)", rval_to_str(mid, mid_meanings, "Unknown")); - return tvb_length(tvb); + return tvb_captured_length(tvb); } void |