aboutsummaryrefslogtreecommitdiffstats
path: root/packet.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2000-05-19 04:54:36 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2000-05-19 04:54:36 +0000
commitb263e4934bb62aff50495d472484329a6bd23829 (patch)
treebea8f6bda5798602a5390217358018f02f763de7 /packet.c
parentc43db40dc1315bfa84bc0ba7f91ffd31fc0ff272 (diff)
downloadwireshark-b263e4934bb62aff50495d472484329a6bd23829.tar.gz
wireshark-b263e4934bb62aff50495d472484329a6bd23829.tar.bz2
wireshark-b263e4934bb62aff50495d472484329a6bd23829.zip
Add protection against 0-length FT_BYTES being added to proto_tree.
Convert ethertype() and dissect_null() to use tvbuff. svn path=/trunk/; revision=1979
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet.c b/packet.c
index 09352c0bf6..50b7742d45 100644
--- a/packet.c
+++ b/packet.c
@@ -1,7 +1,7 @@
/* packet.c
* Routines for packet disassembly
*
- * $Id: packet.c,v 1.85 2000/05/18 09:05:55 guy Exp $
+ * $Id: packet.c,v 1.86 2000/05/19 04:54:34 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -1187,7 +1187,7 @@ dissect_packet(union pseudo_header *pseudo_header, const u_char *pd,
dissect_tr(tvb, &pi, tree);
break;
case WTAP_ENCAP_NULL :
- dissect_null(pd, fd, tree);
+ dissect_null(tvb, &pi, tree);
break;
case WTAP_ENCAP_PPP :
dissect_ppp(pd, 0, fd, tree);