fixed segfault when repairing swapped pcap files