Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-atalk.c packet-dsi.c

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

From: guy@xxxxxxxxxxxx (Guy Harris)
Date: Tue, 13 Jan 2004 15:49:52 -0600 (CST)
guy         2004/01/13 15:49:52 CST

  Modified files:
    .                    packet-atalk.c packet-dsi.c 
  Log:
  You can't rely on "proto_tree_add_item()" returning a non-null pointer,
  so you can't rely on getting the length of an FT_UINT_STRING item by
  calling "proto_tree_add_item()" and fetching the item length from the
  item.  Get the length of the string explicitly, and advance the offset
  by the length of the string plus the length of the length field.
  
  Revision  Changes    Path
  1.94      +10 -7     ethereal/packet-atalk.c
  1.29      +10 -7     ethereal/packet-dsi.c