Changeset 9b92664


Ignore:
Timestamp:
12/06/18 13:29:30 (2 years ago)
Author:
GitHub <noreply@…>
Branches:
develop
Children:
c79c7fd
Parents:
ffe6fae (diff), c434445 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Shane Alcock <salcock@…> (12/06/18 13:29:30)
git-committer:
GitHub <noreply@…> (12/06/18 13:29:30)
Message:

Merge pull request #85 from jacobvw/pcap

Check the pcap output device/trace before closing it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcap.c

    r2193905 rc434445  
    400400                pcap_dump_close(OUTPUT.trace.dump);
    401401        }
    402         pcap_close(OUTPUT.trace.pcap);
     402        if (OUTPUT.trace.pcap) {
     403                pcap_close(OUTPUT.trace.pcap);
     404        }
    403405        free(libtrace->format_data);
    404406        return 0;
Note: See TracChangeset for help on using the changeset viewer.