Changeset c434445 for lib


Ignore:
Timestamp:
12/06/18 09:58:10 (2 years ago)
Author:
Jacob Van Walraven <jcv9@…>
Branches:
develop
Children:
9b92664
Parents:
de8566f
git-author:
Jacob Van Walraven <jcv9@…> (11/30/18 14:16:27)
git-committer:
Jacob Van Walraven <jcv9@…> (12/06/18 09:58:10)
Message:

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.