Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal ipproto.c

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Fri, 22 Oct 1999 03:02:44 -0500 (CDT)
guy         1999/10/22 03:02:33 CDT

  Modified files:
    .                    ipproto.c 
  Log:
  If one wants to look up a value in a "value_string" table, and get back
  either the corresponding string on success or NULL on failure, one
  should use "match_strval()", rather than using "val_to_str()" with a
  null format - "val_to_str()" uses the format if the lookup fails, so it
  won't work correctly (e.g., it may drop core) if the format string is
  NULL.
  
  Revision  Changes    Path
  1.3       +2 -2      ethereal/ipproto.c