Ethereal-dev: [Ethereal-dev] Problem with call_dissector()?

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

From: Mike Duigou <ethereal@xxxxxxxxxx>
Date: Sun, 25 Sep 2005 12:38:34 -0700
I've been using the following snippet in my dissector for a while:

mime_dissector_handle = dissector_get_string_handle(
    media_type_dissector_table, content_type);

dissected = 0 < call_dissector(
    mime_dissector_handle, jxta_message_tvb, pinfo, tree);

but with recent builds it's segfaulting in call_dissector_work when there is no registered dissector matching the mime type in content_type. (NULL is passed to call_dissector() )

I'm a bit confused as to how this should work. Should I be checking the result of dissector_get_string_handle() for NULL? The docs seem to imply that I should be able to use call_dissector() with a NULL dissector handle and just get the raw data dissector.

Mike