diff options
Diffstat (limited to 'epan/dissectors/packet-ldp.c')
-rw-r--r-- | epan/dissectors/packet-ldp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ldp.c b/epan/dissectors/packet-ldp.c index b382fdec3d..9a38d47b22 100644 --- a/epan/dissectors/packet-ldp.c +++ b/epan/dissectors/packet-ldp.c @@ -2393,7 +2393,7 @@ dissect_ldp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) * packets that happen to be going to or from the * LDP port but that aren't LDP packets. */ - if (!tvb_bytes_exist(tvb, 0, 2)) { + if (tvb_length(tvb) < 2) { /* * Not enough information to tell. */ |