seg fault fix when a pcap file could not be opened