Make sure our root tvb is initialized in case its creation fails.

Untested fix for bug 6135.

svn path=/trunk/; revision=38410
This commit is contained in:
Gerald Combs 2011-08-08 17:25:35 +00:00
parent b708c2892b
commit 713a85de8a
1 changed files with 1 additions and 0 deletions

View File

@ -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;