2nd try to fix recent test failures.

After recent changes it's possible that epan_dissect_cleanup() can be called if there were
no dissection run on it (epan_dissect_run()) In such case ->tvb will have random value,
just initialize it to NULL in _init() and see if it's working.

Thanks goes to Evan for backtrace.

svn path=/trunk/; revision=52722
This commit is contained in:
Jakub Zawadzki 2013-10-20 19:05:00 +00:00
parent 7f3d07b9fd
commit 1f110ac43f
1 changed files with 2 additions and 0 deletions

View File

@ -229,6 +229,8 @@ epan_dissect_init(epan_dissect_t *edt, epan_t *session, const gboolean create_pr
edt->tree = NULL;
}
edt->tvb = NULL;
memset(&edt->pi, 0, sizeof(edt->pi));
edt->pi.pool = wmem_allocator_new(WMEM_ALLOCATOR_SIMPLE);