diff options
author | Gerald Combs <gerald@wireshark.org> | 2011-08-08 17:25:35 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2011-08-08 17:25:35 +0000 |
commit | 713a85de8a0330bec508a754f1d8ac630bca83dd (patch) | |
tree | 1de747d17ed4a76f2fb2309cb48fba5d106369fe /epan/packet.c | |
parent | b708c2892bb20794b118c90864709bda9e2b2b32 (diff) |
Make sure our root tvb is initialized in case its creation fails.
Untested fix for bug 6135.
svn path=/trunk/; revision=38410
Diffstat (limited to 'epan/packet.c')
-rw-r--r-- | epan/packet.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/packet.c b/epan/packet.c index 5bc9595c0a..50a0b0d13e 100644 --- a/epan/packet.c +++ b/epan/packet.c @@ -295,6 +295,7 @@ dissect_packet(epan_dissect_t *edt, union wtap_pseudo_header *pseudo_header, edt->pi.annex_a_used = MTP2_ANNEX_A_USED_UNKNOWN; edt->pi.dcerpc_procedure_name=""; edt->pi.link_dir = LINK_DIR_UNKNOWN; + edt->tvb = NULL; /* to enable decode as for ethertype=0x0000 (fix for bug 4721) */ edt->pi.ethertype = G_MAXINT; |