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

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

From: Guy Harris <guy@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 1 Feb 2002 20:56:20 -0600 (CST)
guy         2002/02/01 20:56:20 CST

  Modified files:
    .                    packet-sip.c 
  Log:
  Use "tvb_offset_exists()" to check whether there's a payload, and use
  "msg_offset" rather than "offset" as the offset of the beginning of the
  payload ("offset" is only advanced if "tree" is non-null, so it doesn't
  necessarily point to the beginning of the payload).
  
  Use -1 rather than "tvb_length_remaining()" as a length argument to
  "tvb_find_guint8()" to get it to search to the end of the tvbuff, and,
  before checking for the additional "\n\r\n" after a "\r", check whether
  those 3 bytes are in the tvbuff.
  
  Revision  Changes    Path
  1.23      +19 -12    ethereal/packet-sip.c