diff options
Diffstat (limited to 'epan/dissectors/packet-olsr.c')
-rw-r--r-- | epan/dissectors/packet-olsr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-olsr.c b/epan/dissectors/packet-olsr.c index ddbc401e1d..3bc69521f1 100644 --- a/epan/dissectors/packet-olsr.c +++ b/epan/dissectors/packet-olsr.c @@ -535,13 +535,13 @@ static int dissect_olsr(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, voi guint16 packet_len; /* Does this packet have a valid message type at the beginning? */ - if (tvb_length(tvb) < 4) { + if (tvb_captured_length(tvb) < 4) { col_add_fstr(pinfo->cinfo, COL_INFO, "OLSR Packet, Length: %u Bytes (not enough data in packet)", - tvb_length(tvb)); + tvb_captured_length(tvb)); return 0; /* not enough bytes for the packet length */ } packet_len = tvb_get_ntohs(tvb, 0); - if (packet_len > tvb_length(tvb)) { + if (packet_len > tvb_reported_length(tvb)) { col_add_fstr(pinfo->cinfo, COL_INFO, "OLSR Packet, Length: %u Bytes (not enough data in packet)", packet_len); return 0; } |