summaryrefslogtreecommitdiff
blob: 2c3e01bf697ad238e91f9c87138169f99037e66f (plain)
1
2
3
4
5
6
7
8
9
10
11
--- 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);