Wireshark-bugs: [Wireshark-bugs] [Bug 9033] wmem assertion after changing preferences before loa
Date: Tue, 13 Aug 2013 20:09:02 +0000

Comment # 7 on bug 9033 from
Perhaps one step should be to turn

    extern capture_file cfile;

into

    extern capture_file *cfile;

and turn

    cf_status_t cf_open(capture_file *cf, const char *fname, gboolean
is_tempfile, int *err)

into

    capture_file *cf_open(const char *fname, gboolean is_tempfile, int *err)

and have it allocate a new capture_file structure (and not do a cf_close()
internally), and have cf_close() free the capture_file structure it's handed.

Then set the global cfile pointer from cf_open() and null it out on a
cf_close().

Then have the callers of cf_redissect_packets() only call it if cfile is
non-null.


You are receiving this mail because:
  • You are watching all bug changes.