Changeset 5ceb545


Ignore:
Timestamp:
03/27/08 15:44:18 (14 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
590fb30
Parents:
f52bcdd
Message:

If the file was never opened, don't bother trying to close it.
(Reported by Nevil Brownlee)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcapfile.c

    rf0fb38f r5ceb545  
    189189static int pcapfile_fin_input(libtrace_t *libtrace)
    190190{
    191         libtrace_io_close(DATA(libtrace)->file);
     191        if (DATA(libtrace)->file)
     192                libtrace_io_close(DATA(libtrace)->file);
    192193        free(libtrace->format_data);
    193194        return 0; /* success */
Note: See TracChangeset for help on using the changeset viewer.