Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal ethereal.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: Thu, 19 Aug 1999 23:41:36 -0500 (CDT)
guy         1999/08/19 23:41:34 CDT

  Modified files:
    .                    ethereal.c 
  Log:
  "open_cap_file()" calls "close_cap_file()" if its attempt to open the
  capture file succeeds, so that it cleans out any state in the
  "capture_file" structure it was handed before filling it in with new
  state for the new capture file.
  
  This means it destroys any read filter associated with the
  "capture_file" structure it was handed, so the "rfcode" field must be
  set *after* calling "open_cap_file()" but *before* calling
  "read_cap_file()".  Do so for the "capture file (and possibly read
  filter) supplied on the command line" case.
  
  Revision  Changes    Path
  1.97      +2 -2      ethereal/ethereal.c