Fixed version check

This commit is contained in:
Luca Deri 2015-10-04 22:23:53 +02:00
parent 368381135f
commit 80e248fc35
4 changed files with 10 additions and 7 deletions

View file

@ -156,7 +156,8 @@ static void* packetPollLoop(void* ptr) {
if((rc = pcap_next_ex(pd, &hdr, &pkt)) > 0) {
if((rc > 0) && (pkt != NULL) && (hdr->caplen > 0)) {
int a, b;
hdr->caplen = min_val(hdr->caplen, iface->getMTU());
iface->packet_dissector(hdr, pkt, &a, &b);
}
} else if(rc < 0) {