Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-bugs: [Wireshark-bugs] [Bug 5802] Rewrite&cleanup wiretap/file_wrappers

Date: Fri, 8 Apr 2011 14:14:29 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5802

--- Comment #34 from Guy Harris <guy@xxxxxxxxxxxx> 2011-04-08 14:14:29 PDT ---
wtap_close() depends on:

    wth->subtype_sequential_close and wth->subtype_close being set
appropriately - if none of the open routines fail but set it anyway, that'll be
OK (and if any of them do, they're buggy);

    wth->frame_buffer being set appropriately (null if not allocated, pointer
to the buffer if allocated), which it should be;

    wth->priv being set appropriately (null if not allocated, pointer to the
private data if allocated), which it should be;

so it should be safe to call there (and, if it's not, that's a bug elsewhere in
Wiretap, which should be fixed).

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.