Ethereal-dev: [Ethereal-dev] dissector_add() assert failure

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Gisle Vanem <giva@xxxxxxxxx>
Date: Sat, 12 Nov 2005 14:46:34 +0100
Since approx. a week ago, I'm getting an assert failure in
epan/packet.c line 663. Adding some trace around the g_assert(),
I see that name is 'h248.package.bin'.

This happens in both tethereal and ethereal. Both built using MSVC6.
Currently I'm using the following work-around:

--- SVN-Latest\epan\packet.c    Sat Oct 08 13:35:11 2005
+++ epan\packet.c       Sat Nov 12 14:43:30 2005
@@ -660,6 +660,11 @@
       dtbl_entry_t *dtbl_entry;

/* sanity checks */
+ if (!sub_dissectors) + return;
+
       g_assert( sub_dissectors);
       switch (sub_dissectors->type) {

--------------

Anybody got a clue why this should happen (i.e. sub_dissectors == NULL)?

--gv