--- a/scan.c+++ b/scan.c@@ -456,7 +456,7 @@ continue;
/* time to copy headers in a safe place */
p = packet+linkhdr_size+iphdrlen;
- memcpy(&icmp, p, sizeof(subtcp));+ memcpy(&icmp, p, sizeof(icmp)); p += sizeof(icmp);
memcpy(&subip, p, sizeof(ip));
p += sizeof(ip);