the lowest blocksize is 12 bytes, disregard packets, if total block length is below
@@ -5473,7 +5473,7 @@ while(1)
break;
}
res = read(fd, &pcpngblock, pcapngbh->total_length);
- if((res == 0) || (res != pcapngbh->total_length))
+ if((res < 12) || (res != pcapngbh->total_length))
{
pcapreaderrors++;
printf("failed to read pcapng header block\n");
