diff options
Diffstat (limited to 'packet-udp.c')
-rw-r--r-- | packet-udp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packet-udp.c b/packet-udp.c index 2ddbe16155..788d18beee 100644 --- a/packet-udp.c +++ b/packet-udp.c @@ -1,7 +1,7 @@ /* packet-udp.c * Routines for UDP packet disassembly * - * $Id: packet-udp.c,v 1.74 2000/08/07 03:21:18 guy Exp $ + * $Id: packet-udp.c,v 1.75 2000/08/13 14:09:07 deniel Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -141,6 +141,8 @@ dissect_udp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) { proto_tree *udp_tree; proto_item *ti; + OLD_CHECK_DISPLAY_AS_DATA(proto_udp, pd, offset, fd, tree); + if (!BYTES_ARE_IN_FRAME(offset, sizeof(e_udphdr))) { old_dissect_data(pd, offset, fd, tree); return; |