aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-03-01 09:38:41 +0000
committerGuy Harris <guy@alum.mit.edu>2003-03-01 09:38:41 +0000
commit14b5b9e3a93ba33ebe6492f2a8e4982e34169fb6 (patch)
treeb972af075b7f63b9265b55f605f9f7e94be82d52 /epan
parent367954ea2d8494579203e807a593afb099d2cdb9 (diff)
Completely initialize all the address fields in a packet_info structure,
setting the length to 0 and the data pointer to a null pointer. svn path=/trunk/; revision=7239
Diffstat (limited to 'epan')
-rw-r--r--epan/packet.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/epan/packet.c b/epan/packet.c
index f5a323dce9..992b9f5a42 100644
--- a/epan/packet.c
+++ b/epan/packet.c
@@ -1,7 +1,7 @@
/* packet.c
* Routines for packet disassembly
*
- * $Id: packet.c,v 1.87 2003/02/27 03:56:48 guy Exp $
+ * $Id: packet.c,v 1.88 2003/03/01 09:38:41 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -267,11 +267,23 @@ dissect_packet(epan_dissect_t *edt, union wtap_pseudo_header *pseudo_header,
edt->pi.pseudo_header = pseudo_header;
edt->pi.data_src = NULL;
edt->pi.dl_src.type = AT_NONE;
+ edt->pi.dl_src.len = 0;
+ edt->pi.dl_src.data = NULL;
edt->pi.dl_dst.type = AT_NONE;
+ edt->pi.dl_dst.len = 0;
+ edt->pi.dl_dst.data = NULL;
edt->pi.net_src.type = AT_NONE;
+ edt->pi.net_src.len = 0;
+ edt->pi.net_src.data = NULL;
edt->pi.net_dst.type = AT_NONE;
+ edt->pi.net_dst.len = 0;
+ edt->pi.net_dst.data = NULL;
edt->pi.src.type = AT_NONE;
+ edt->pi.src.len = 0;
+ edt->pi.src.data = NULL;
edt->pi.dst.type = AT_NONE;
+ edt->pi.dst.len = 0;
+ edt->pi.dst.data = NULL;
edt->pi.ethertype = 0;
edt->pi.ipproto = 0;
edt->pi.ipxptype = 0;