Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-wsp.c

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

From: Guy Harris <guy@xxxxxxxxxxxxxxxxx>
Date: Fri, 10 Oct 2003 19:10:58 -0500 (CDT)
guy         2003/10/10 19:10:58 CDT

  Modified files:
    .                    packet-wsp.c 
  Log:
  "add_content_type()" returns either a numerical content type and a null
  content type pointer or a 0 numerical content type and a non-null
  content type pointer; if the content type is numerical, we cannot match
  on the string content type (as we'd dereference a null pointer) and, if
  the content type is a string, we should not match on the numerical
  content type (as the value is bogus).
  
  We also have to call "add_content_type()" to get the content type
  regardless of whether we're building a protocol tree, as we need to call
  subdissectors regardless of whether we're building a protocol tree.
  
  We also need to set the columns regardless of whether we're building a
  protocol tree.
  
  Revision  Changes    Path
  1.78      +115 -63   ethereal/packet-wsp.c